summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 227f781)
raw | patch | inline | side by side (parent: 227f781)
author | Pelle Wessman <pelle@kodfabrik.se> | |
Wed, 30 Sep 2009 12:29:42 +0000 (14:29 +0200) | ||
committer | Pelle Wessman <pelle@kodfabrik.se> | |
Wed, 30 Sep 2009 12:29:42 +0000 (14:29 +0200) |
git-subtree.sh | patch | blob | history |
diff --git a/git-subtree.sh b/git-subtree.sh
index b7c741cfd43ef7501502f7be64174b0fd8385c7c..454ce7ef2228fcd2698a0f3a21b0ffb48fa26951 100755 (executable)
--- a/git-subtree.sh
+++ b/git-subtree.sh
git ls-tree "$commit" -- "$dir" |
while read mode type tree name; do
assert [ "$name" = "$dir" ]
+ assert [ "$type" = "tree" ]
echo $tree
break
done