Fix wrapper script for branches with slahes

Use git-branch(1) instead of ls(1) for getting branch names.
This commit is contained in:
Rocco Rutte
2007-03-06 19:46:50 +00:00
parent 9832035614
commit 95e06a1f56

View File

@@ -67,7 +67,7 @@ rm -rf "$GIT_DIR/$PFX-$SFX_MARKS.old" "$GIT_DIR/$PFX-$SFX_MARKS.tmp"
# save SHA1s of current heads for incremental imports
# and connectivity (plus sanity checking)
for head in `ls "$GIT_DIR/refs/heads"` ; do
for head in `git branch | sed 's#^..##'` ; do
id="`git-rev-parse $head`"
echo ":$head $id"
done > "$GIT_DIR/$PFX-$SFX_HEADS"