mirror of
https://github.com/frej/fast-export.git
synced 2026-05-07 05:07:24 +02:00
Fix wrapper script for branches with slahes
Use git-branch(1) instead of ls(1) for getting branch names.
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user