We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aeb582a commit 502d87bCopy full SHA for 502d87b
t/t6050-replace.sh
@@ -393,9 +393,11 @@ test_expect_success 'replace ref cleanup' '
393
'
394
395
test_expect_success '--graft with and without already replaced object' '
396
- test $(git log --oneline | wc -l) = 7 &&
+ git log --oneline >log &&
397
+ test_line_count = 7 log &&
398
git replace --graft $HASH5 &&
- test $(git log --oneline | wc -l) = 3 &&
399
400
+ test_line_count = 3 log &&
401
commit_has_parents $HASH5 &&
402
test_must_fail git replace --graft $HASH5 $HASH4 $HASH3 &&
403
git replace --force -g $HASH5 $HASH4 $HASH3 &&
0 commit comments