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.
2 parents 08bd076 + fd72637 commit 98c496fCopy full SHA for 98c496f
t/t2024-checkout-dwim.sh
@@ -305,10 +305,13 @@ test_expect_success 'loosely defined local base branch is reported correctly' '
305
test_config branch.strict.merge refs/heads/main &&
306
test_config branch.loose.merge main &&
307
308
- git checkout strict | sed -e "s/strict/BRANCHNAME/g" >expect &&
+ git checkout strict >expect.raw 2>&1 &&
309
+ sed -e "s/strict/BRANCHNAME/g" <expect.raw >expect &&
310
status_uno_is_clean &&
- git checkout loose | sed -e "s/loose/BRANCHNAME/g" >actual &&
311
+ git checkout loose >actual.raw 2>&1 &&
312
+ sed -e "s/loose/BRANCHNAME/g" <actual.raw >actual &&
313
314
+ grep BRANCHNAME actual &&
315
316
test_cmp expect actual
317
'
0 commit comments