diff --git a/tools/sfsnapshotgit b/tools/sfsnapshotgit
index af05c24bada3f296f3f8d9eeecfd35403c7683c1..e79dd5538eac0efa48f049aa0ee2b9460557b3ac 100755 (executable)
--- a/tools/sfsnapshotgit
+++ b/tools/sfsnapshotgit
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"