Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
contrib/subtree: Add test for missing subtree
author
Techlive Zheng
<techlivezheng@gmail.com>
Fri, 13 Nov 2015 02:32:31 +0000
(20:32 -0600)
committer
Jeff King
<peff@peff.net>
Fri, 13 Nov 2015 05:02:56 +0000
(
00:02
-0500)
Test that a merge from a non-existant subtree fails.
Signed-off-by: Techlive Zheng <techlivezheng@gmail.com>
Signed-off-by: David A. Greene <greened@obbligato.org>
Signed-off-by: Jeff King <peff@peff.net>
contrib/subtree/t/t7900-subtree.sh
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
b0638aa
)
diff --git
a/contrib/subtree/t/t7900-subtree.sh
b/contrib/subtree/t/t7900-subtree.sh
index f9dda3d6f9cfb0b21c6aeee76a6e0825c8c98ed4..4471786f50ff7ff7cb13f986b9e6662b00613b69 100755
(executable)
--- a/
contrib/subtree/t/t7900-subtree.sh
+++ b/
contrib/subtree/t/t7900-subtree.sh
@@
-123,6
+123,10
@@
test_expect_success 'no pull from non-existant subtree' '
test_must_fail git subtree pull --prefix="sub dir" ./"sub proj" sub1
'
+test_expect_success 'no merge from non-existent subtree' '
+ test_must_fail git subtree merge --prefix="sub dir" FETCH_HEAD
+'
+
test_expect_success 'check if --message works for add' '
git subtree add --prefix="sub dir" --message="Added subproject" sub1 &&
check_equal ''"$(last_commit_message)"'' "Added subproject" &&