Skip to content

Commit 9ecb206

Browse files
committed
Fix logic for checking out branches in fixture repos
1 parent 483881e commit 9ecb206

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

script/fetch-fixtures

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ fetch_grammar() {
1515
fi
1616

1717
(
18-
cd $grammar_dir;
18+
cd $grammar_dir
1919
git fetch origin $ref --depth=1
20-
git reset --hard origin/$ref;
20+
git reset --hard FETCH_HEAD
2121
)
2222
}
2323

script/fetch-fixtures.cmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@ SET grammar_branch=%~2
2222
)
2323
pushd %grammar_dir%
2424
git fetch origin %2 --depth=1
25-
git reset --hard origin/%grammar_branch%
25+
git reset --hard FETCH_HEAD
2626
popd
2727
EXIT /B 0

0 commit comments

Comments
 (0)