From 95e06a1f56781a1547c377034b7add7ba5b7ec63 Mon Sep 17 00:00:00 2001 From: Rocco Rutte Date: Tue, 6 Mar 2007 19:46:50 +0000 Subject: [PATCH] Fix wrapper script for branches with slahes Use git-branch(1) instead of ls(1) for getting branch names. --- hg2git.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hg2git.sh b/hg2git.sh index c51c1d5..ea25f9a 100755 --- a/hg2git.sh +++ b/hg2git.sh @@ -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" -- 2.11.0