mirror of
https://github.com/frej/fast-export.git
synced 2026-01-21 13:42:03 +01:00
Only dump heads in head cache
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.
This commit is contained in:
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user