It's also okay if an expected tree object is actually a commit.
commit856bea1f71db30339539b0c917d6d7dc32729d0f
authorAvery Pennarun <apenwarr@gmail.com>
Tue, 1 Mar 2011 00:49:42 +0000 (28 16:49 -0800)
committerAvery Pennarun <apenwarr@gmail.com>
Tue, 1 Mar 2011 00:49:42 +0000 (28 16:49 -0800)
tree49fb24d535dc3e47f2d43b156e43a6e336e9fd63
parent915b9894abe94169e60a14e4dc671f6bd15131f3
It's also okay if an expected tree object is actually a commit.

...that happens with submodules sometimes, so don't panic.

Reported by Sum-Wai Low.
git-subtree.sh