Skip to content

Commit 9026cfc

Browse files
committed
Merge branch 'jc/t3404-one-shot-export-fix' into pu
* jc/t3404-one-shot-export-fix: t3404: fix use of "VAR=VAL cmd" with a shell function
2 parents e7e0098 + 650161a commit 9026cfc

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
@@ -279,11 +279,18 @@ test_expect_success 'retain authorship' '
279279
'
280280

281281
test_expect_success 'retain authorship w/ conflicts' '
282+
oGIT_AUTHOR_NAME=$GIT_AUTHOR_NAME &&
283+
test_when_finished "GIT_AUTHOR_NAME=\$oGIT_AUTHOR_NAME" &&
284+
282285
git reset --hard twerp &&
283286
test_commit a conflict a conflict-a &&
284287
git reset --hard twerp &&
285-
GIT_AUTHOR_NAME=AttributeMe \
288+
289+
GIT_AUTHOR_NAME=AttributeMe &&
290+
export GIT_AUTHOR_NAME &&
286291
test_commit b conflict b conflict-b &&
292+
GIT_AUTHOR_NAME=$oGIT_AUTHOR_NAME &&
293+
287294
set_fake_editor &&
288295
test_must_fail git rebase -i conflict-a &&
289296
echo resolved >conflict &&

0 commit comments

Comments
 (0)