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:
29e19d6
)
Only dump heads in head cache
author
Frej Drejhammar
<frej.drejhammar@gmail.com>
Sun, 6 Jul 2014 12:59:28 +0000
(14:59 +0200)
committer
Frej Drejhammar
<frej.drejhammar@gmail.com>
Sun, 6 Jul 2014 12:59:28 +0000
(14:59 +0200)
If there is a tag with the same name as a tag, "git rev-parse <name>"
can give the hash of the tag instead of the branch. "git rev-parse
refs/heads/<name>" must be used to make sure we only find branches.
hg-fast-export.sh
patch
|
blob
|
history
diff --git
a/hg-fast-export.sh
b/hg-fast-export.sh
index
9c1077c
..
c052e1b
100755
(executable)
--- a/
hg-fast-export.sh
+++ b/
hg-fast-export.sh
@@
-131,7
+131,7
@@
cat "$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 `git branch | sed 's#^..##'` ; do
- id="`git rev-parse $head`"
+ id="`git rev-parse
refs/heads/
$head`"
echo ":$head $id"
done > "$GIT_DIR/$PFX-$SFX_HEADS"