diff options
author | Thomas Guyot-Sionnest <dermoth@aei.ca> | 2009-11-11 09:53:35 -0500 |
---|---|---|
committer | Thomas Guyot-Sionnest <dermoth@aei.ca> | 2009-11-11 09:53:35 -0500 |
commit | 175b2c8703ef0ecbcd7d8cb7613fa3cb72c81c12 (patch) | |
tree | b6fb8015cfea8a413c3b8ac1478b01f542e65612 | |
parent | bb193973a8767547edc8626df6cea7d154812de5 (diff) | |
download | monitoring-plugins-175b2c8703ef0ecbcd7d8cb7613fa3cb72c81c12.tar.gz |
Fix fetching of remote branches
-rwxr-xr-x | tools/sfsnapshotgit | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/sfsnapshotgit b/tools/sfsnapshotgit index af05c24b..e79dd553 100755 --- a/tools/sfsnapshotgit +++ b/tools/sfsnapshotgit @@ -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" |