Merge branch 'master' of git://github.com/voxpelli/git-subtree
* 'master' of git://github.com/voxpelli/git-subtree: Check that the type of the tree really is a tree and not a commit as it seems to sometimes become when eg. a submodule has existed in the same position previously.
This commit is contained in:
commit
39ee6ecf7e
@ -322,6 +322,7 @@ subtree_for_commit()
|
||||
git ls-tree "$commit" -- "$dir" |
|
||||
while read mode type tree name; do
|
||||
assert [ "$name" = "$dir" ]
|
||||
assert [ "$type" = "tree" ]
|
||||
echo $tree
|
||||
break
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user