Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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.
  • Loading branch information...
commit 2793ee6ba6da57d97e9c313741041f7eb2e88974 1 parent 856bea1
@apenwarr authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  git-subtree.sh
View
1  git-subtree.sh
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.