summaryrefslogtreecommitdiff
path: root/t/t2024-checkout-dwim.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2018-08-20 19:53:46 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-08-20 19:53:46 (GMT)
commit273b0a1f5888ace60a95bf7276f88f70a5581b94 (patch)
treefe9cd029b7d0eabe8e7b7b5d3a92f5c83da10458 /t/t2024-checkout-dwim.sh
parentd28017005fc64e9cfba3068bfe3c975cf7787767 (diff)
parent3338e9950e353ffd2033aae25952eb3f88c315e1 (diff)
downloadgit-273b0a1f5888ace60a95bf7276f88f70a5581b94.zip
git-273b0a1f5888ace60a95bf7276f88f70a5581b94.tar.gz
git-273b0a1f5888ace60a95bf7276f88f70a5581b94.tar.bz2
Merge branch 'ab/checkout-default-remote'
* ab/checkout-default-remote: t2024: mark test using "checkout -p" with PERL prerequisite
Diffstat (limited to 't/t2024-checkout-dwim.sh')
-rwxr-xr-xt/t2024-checkout-dwim.sh9
1 files changed, 7 insertions, 2 deletions
diff --git a/t/t2024-checkout-dwim.sh b/t/t2024-checkout-dwim.sh
index f79dfbb..69b6774 100755
--- a/t/t2024-checkout-dwim.sh
+++ b/t/t2024-checkout-dwim.sh
@@ -86,8 +86,13 @@ test_expect_success 'checkout of branch from multiple remotes fails with advice'
checkout foo 2>stderr &&
test_branch master &&
status_uno_is_clean &&
- test_i18ngrep ! "^hint: " stderr &&
- # Make sure the likes of checkout -p do not print this hint
+ test_i18ngrep ! "^hint: " stderr
+'
+
+test_expect_success PERL 'checkout -p with multiple remotes does not print advice' '
+ git checkout -B master &&
+ test_might_fail git branch -D foo &&
+
git checkout -p foo 2>stderr &&
test_i18ngrep ! "^hint: " stderr &&
status_uno_is_clean