Cross Forests
/
projects
/
python
/
fast-export.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9832035
)
Fix wrapper script for branches with slahes
author
Rocco Rutte
<pdmef@gmx.net>
Tue, 6 Mar 2007 19:46:50 +0000
(19:46 +0000)
committer
Rocco Rutte
<pdmef@gmx.net>
Tue, 6 Mar 2007 19:51:15 +0000
(19:51 +0000)
Use git-branch(1) instead of ls(1) for getting branch names.
hg2git.sh
patch
|
blob
|
history
diff --git
a/hg2git.sh
b/hg2git.sh
index
c51c1d5
..
ea25f9a
100755
(executable)
--- 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"