@@ -122,9 +122,9 @@ test_expect_success '"git replace" listing and deleting' '
122
122
test "$HASH2" = "$(git replace -l)" &&
123
123
test "$HASH2" = "$(git replace)" &&
124
124
aa=${HASH2%??????????????????????????????????????} &&
125
- test "$HASH2" = "$(git replace -l "$aa*")" &&
125
+ test "$HASH2" = "$(git replace --list "$aa*")" &&
126
126
test_must_fail git replace -d $R &&
127
- test_must_fail git replace -d &&
127
+ test_must_fail git replace --delete &&
128
128
test_must_fail git replace -l -d $HASH2 &&
129
129
git replace -d $HASH2 &&
130
130
git show $HASH2 | grep "A U Thor" &&
@@ -147,7 +147,7 @@ test_expect_success '"git replace" resolves sha1' '
147
147
git show $HASH2 | grep "O Thor" &&
148
148
test_must_fail git replace $HASH2 $R &&
149
149
git replace -f $HASH2 $R &&
150
- test_must_fail git replace -f &&
150
+ test_must_fail git replace --force &&
151
151
test "$HASH2" = "$(git replace)"
152
152
'
153
153
@@ -272,7 +272,7 @@ test_expect_success 'replaced and replacement objects must be of the same type'
272
272
273
273
test_expect_success ' -f option bypasses the type check' '
274
274
git replace -f mytag $HASH1 &&
275
- git replace -f HEAD^{tree} HEAD~1 &&
275
+ git replace --force HEAD^{tree} HEAD~1 &&
276
276
git replace -f HEAD^ $BLOB
277
277
'
278
278
0 commit comments