git.99rst.org
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
3e625c8
)
t6050-replace: add test to clean up all the replace refs
author
Christian Couder
<redacted>
Fri, 6 Sep 2013 05:10:56 +0000
(07:10 +0200)
committer
Junio C Hamano
<redacted>
Fri, 6 Sep 2013 20:29:44 +0000
(13:29 -0700)
Signed-off-by: Christian Couder <redacted>
Signed-off-by: Junio C Hamano <redacted>
t/t6050-replace.sh
patch
|
blob
|
history
diff --git
a/t/t6050-replace.sh
b/t/t6050-replace.sh
index 09bad9877f4d8d7877dee6dc35dc7e948148439e..09a2b49bfbbcfda32b4cae18faadd2d63ccaa321 100755
(executable)
--- a/
t/t6050-replace.sh
+++ b/
t/t6050-replace.sh
@@
-276,4
+276,10
@@
test_expect_success '-f option bypasses the type check' '
git replace -f HEAD^ $BLOB
'
+test_expect_success 'replace ref cleanup' '
+ test -n "$(git replace)" &&
+ git replace -d $(git replace) &&
+ test -z "$(git replace)"
+'
+
test_done
git clone https://git.99rst.org/PROJECT