summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2017-02-23 20:38:20 -0800
committerH. Peter Anvin <hpa@zytor.com>2017-02-23 20:38:20 -0800
commitb86f69fc3d40bc9c9b71ee8608701f47d197bd4c (patch)
tree40d72c47a456927216ed905007b987084e9801dd
parent0c396acb6a80755ce9704e8110bc8701ac96713f (diff)
downloadnasmbuild-b86f69fc3d40bc9c9b71ee8608701f47d197bd4c.tar.gz
nasmbuild-b86f69fc3d40bc9c9b71ee8608701f47d197bd4c.tar.xz
nasmbuild-b86f69fc3d40bc9c9b71ee8608701f47d197bd4c.zip
robot.sh: save branches.heads
Save branches.heads to make recovery from a corrupt tracking repository easier.
-rwxr-xr-xgitmirror/robot.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/gitmirror/robot.sh b/gitmirror/robot.sh
index 6de60e0..fcfd318 100755
--- a/gitmirror/robot.sh
+++ b/gitmirror/robot.sh
@@ -58,5 +58,6 @@ date=$(date -uR)
cd "$topdir"
mv -f branches.id.new branches.id
+ mv -f branches.heads branches.heads.saved
fi
) 8< "$0"