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.
diff --git a/git-subtree.sh b/git-subtree.sh
index b7c741c..454ce7e 100755
--- a/git-subtree.sh
+++ b/git-subtree.sh
Binary files differ