Code

Fix fetching of remote branches
[nagiosplug.git] / tools / sfsnapshotgit
index af05c24bada3f296f3f8d9eeecfd35403c7683c1..e79dd5538eac0efa48f049aa0ee2b9460557b3ac 100755 (executable)
@@ -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"