Fix logic for checking out branches in fixture repos

This commit is contained in:
Max Brunsfeld 2018-07-17 15:46:14 -07:00
parent 483881ec6a
commit 9ecb20650b
2 changed files with 3 additions and 3 deletions

View file

@ -15,9 +15,9 @@ fetch_grammar() {
fi
(
cd $grammar_dir;
cd $grammar_dir
git fetch origin $ref --depth=1
git reset --hard origin/$ref;
git reset --hard FETCH_HEAD
)
}

View file

@ -22,6 +22,6 @@ SET grammar_branch=%~2
)
pushd %grammar_dir%
git fetch origin %2 --depth=1
git reset --hard origin/%grammar_branch%
git reset --hard FETCH_HEAD
popd
EXIT /B 0