summaryrefslogtreecommitdiff
path: root/t/t3700-add.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2021-05-13 23:26:09 (GMT)
committerJunio C Hamano <gitster@pobox.com>2021-05-13 23:26:09 (GMT)
commit47fa10661746e32cbc76a88392e1cda38def27c6 (patch)
treea2b2cd225f4b9ed50b667803ba66ff79ce740503 /t/t3700-add.sh
parente289f681ede1aad2ded33e76518bdc80064f3c16 (diff)
parenta1989cf7b8d062960b6f8de00435711c45b95285 (diff)
downloadgit-47fa10661746e32cbc76a88392e1cda38def27c6.zip
git-47fa10661746e32cbc76a88392e1cda38def27c6.tar.gz
git-47fa10661746e32cbc76a88392e1cda38def27c6.tar.bz2
Merge branch 'ow/no-dryrun-in-add-i'
"git add -i --dry-run" does not dry-run, which was surprising. The combination of options has taught to error out. * ow/no-dryrun-in-add-i: add: die if both --dry-run and --interactive are given
Diffstat (limited to 't/t3700-add.sh')
-rwxr-xr-xt/t3700-add.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/t/t3700-add.sh b/t/t3700-add.sh
index dd30114..4086e1e 100755
--- a/t/t3700-add.sh
+++ b/t/t3700-add.sh
@@ -349,6 +349,10 @@ test_expect_success 'git add --dry-run --ignore-missing of non-existing file out
test_cmp expect.err actual.err
'
+test_expect_success 'git add --dry-run --interactive should fail' '
+ test_must_fail git add --dry-run --interactive
+'
+
test_expect_success 'git add empty string should fail' '
test_must_fail git add ""
'