summaryrefslogtreecommitdiffstats
path: root/tools/sfsnapshotgit
diff options
context:
space:
mode:
authorThomas Guyot-Sionnest <dermoth@aei.ca>2009-11-11 14:53:35 (GMT)
committerThomas Guyot-Sionnest <dermoth@aei.ca>2009-11-11 14:53:35 (GMT)
commit175b2c8703ef0ecbcd7d8cb7613fa3cb72c81c12 (patch)
treeb6fb8015cfea8a413c3b8ac1478b01f542e65612 /tools/sfsnapshotgit
parentbb193973a8767547edc8626df6cea7d154812de5 (diff)
downloadmonitoring-plugins-175b2c8703ef0ecbcd7d8cb7613fa3cb72c81c12.tar.gz
Fix fetching of remote branches
Diffstat (limited to 'tools/sfsnapshotgit')
-rwxr-xr-xtools/sfsnapshotgit2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/sfsnapshotgit b/tools/sfsnapshotgit
index af05c24..e79dd55 100755
--- a/tools/sfsnapshotgit
+++ b/tools/sfsnapshotgit
@@ -46,7 +46,7 @@ git reset --hard
46git clean -qfdx 46git clean -qfdx
47# Any branch used to create snapshots must already exist 47# Any branch used to create snapshots must already exist
48git checkout "$HEAD" 48git checkout "$HEAD"
49git fetch "$SFSNAP_ORIGIN" "$HEAD" 49git fetch "$SFSNAP_ORIGIN"
50git reset --hard "$SFSNAP_ORIGIN"/"$HEAD" 50git reset --hard "$SFSNAP_ORIGIN"/"$HEAD"
51# Tags are important for git-describe 51# Tags are important for git-describe
52git fetch --tags "$SFSNAP_ORIGIN" 52git fetch --tags "$SFSNAP_ORIGIN"