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:
Avery Pennarun 2009-10-02 14:53:35 -04:00
commit 39ee6ecf7e

View File

@ -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