Skip to content

Commit f44a744

Browse files
committed
Merge branch 'jc/t3404-one-shot-export-fix' into es/test-lint-one-shot-export
* jc/t3404-one-shot-export-fix: t3404: fix use of "VAR=VAL cmd" with a shell function
2 parents e333175 + 650161a commit f44a744

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

t/t3404-rebase-interactive.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,11 +264,18 @@ test_expect_success 'retain authorship' '
264264
'
265265

266266
test_expect_success 'retain authorship w/ conflicts' '
267+
oGIT_AUTHOR_NAME=$GIT_AUTHOR_NAME &&
268+
test_when_finished "GIT_AUTHOR_NAME=\$oGIT_AUTHOR_NAME" &&
269+
267270
git reset --hard twerp &&
268271
test_commit a conflict a conflict-a &&
269272
git reset --hard twerp &&
270-
GIT_AUTHOR_NAME=AttributeMe \
273+
274+
GIT_AUTHOR_NAME=AttributeMe &&
275+
export GIT_AUTHOR_NAME &&
271276
test_commit b conflict b conflict-b &&
277+
GIT_AUTHOR_NAME=$oGIT_AUTHOR_NAME &&
278+
272279
set_fake_editor &&
273280
test_must_fail git rebase -i conflict-a &&
274281
echo resolved >conflict &&

0 commit comments

Comments
 (0)