Fix fetching of remote branches

This commit is contained in:
Thomas Guyot-Sionnest 2009-11-11 09:53:35 -05:00
parent bb193973a8
commit 175b2c8703

View file

@ -46,7 +46,7 @@ git reset --hard
git clean -qfdx
# Any branch used to create snapshots must already exist
git checkout "$HEAD"
git fetch "$SFSNAP_ORIGIN" "$HEAD"
git fetch "$SFSNAP_ORIGIN"
git reset --hard "$SFSNAP_ORIGIN"/"$HEAD"
# Tags are important for git-describe
git fetch --tags "$SFSNAP_ORIGIN"