Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
t6050-replace: use some long option names
author
Christian Couder
<chriscool@tuxfamily.org>
Fri, 6 Sep 2013 05:10:59 +0000
(07:10 +0200)
committer
Junio C Hamano
<gitster@pobox.com>
Fri, 6 Sep 2013 20:32:34 +0000
(13:32 -0700)
So that they are tested a little bit too.
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t6050-replace.sh
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
ed0ff80
)
diff --git
a/t/t6050-replace.sh
b/t/t6050-replace.sh
index 09a2b49bfbbcfda32b4cae18faadd2d63ccaa321..7d479843522e3b183fdb4d72d86909b53e0edbda 100755
(executable)
--- a/
t/t6050-replace.sh
+++ b/
t/t6050-replace.sh
@@
-122,9
+122,9
@@
test_expect_success '"git replace" listing and deleting' '
test "$HASH2" = "$(git replace -l)" &&
test "$HASH2" = "$(git replace)" &&
aa=${HASH2%??????????????????????????????????????} &&
test "$HASH2" = "$(git replace -l)" &&
test "$HASH2" = "$(git replace)" &&
aa=${HASH2%??????????????????????????????????????} &&
- test "$HASH2" = "$(git replace -
l
"$aa*")" &&
+ test "$HASH2" = "$(git replace -
-list
"$aa*")" &&
test_must_fail git replace -d $R &&
test_must_fail git replace -d $R &&
- test_must_fail git replace -
d
&&
+ test_must_fail git replace -
-delete
&&
test_must_fail git replace -l -d $HASH2 &&
git replace -d $HASH2 &&
git show $HASH2 | grep "A U Thor" &&
test_must_fail git replace -l -d $HASH2 &&
git replace -d $HASH2 &&
git show $HASH2 | grep "A U Thor" &&
@@
-147,7
+147,7
@@
test_expect_success '"git replace" resolves sha1' '
git show $HASH2 | grep "O Thor" &&
test_must_fail git replace $HASH2 $R &&
git replace -f $HASH2 $R &&
git show $HASH2 | grep "O Thor" &&
test_must_fail git replace $HASH2 $R &&
git replace -f $HASH2 $R &&
- test_must_fail git replace -
f
&&
+ test_must_fail git replace -
-force
&&
test "$HASH2" = "$(git replace)"
'
test "$HASH2" = "$(git replace)"
'
@@
-272,7
+272,7
@@
test_expect_success 'replaced and replacement objects must be of the same type'
test_expect_success '-f option bypasses the type check' '
git replace -f mytag $HASH1 &&
test_expect_success '-f option bypasses the type check' '
git replace -f mytag $HASH1 &&
- git replace -
f
HEAD^{tree} HEAD~1 &&
+ git replace -
-force
HEAD^{tree} HEAD~1 &&
git replace -f HEAD^ $BLOB
'
git replace -f HEAD^ $BLOB
'