mirror of
https://github.com/git/git.git
synced 2026-03-29 01:50:08 +01:00
Skip commit objects that should be trees, rather than copying them.
An improvement on the previous patch, based on more reports from Sum-Wai Low.
This commit is contained in:
@@ -398,6 +398,7 @@ subtree_for_commit()
|
||||
while read mode type tree name; do
|
||||
assert [ "$name" = "$dir" ]
|
||||
assert [ "$type" = "tree" -o "$type" = "commit" ]
|
||||
[ "$type" = "commit" ] && continue # ignore submodules
|
||||
echo $tree
|
||||
break
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user