summaryrefslogtreecommitdiff
path: root/Documentation/RelNotes/1.8.5.txt
diff options
context:
space:
mode:
authorLibravatar Jonathan Nieder <jrnieder@gmail.com>2019-12-26 11:55:10 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2020-01-15 14:02:32 -0800
commitc7973f249ebe86f10ec4b420a8ab83b8b83bce22 (patch)
tree2cfe8f9524b3132794e96f66261c9f92b1015f36 /Documentation/RelNotes/1.8.5.txt
parentMerge branch 'am/pathspec-from-file' (diff)
downloadtgif-c7973f249ebe86f10ec4b420a8ab83b8b83bce22.tar.xz
fetch test: avoid use of "VAR= cmd" with a shell function
Just like assigning a nonempty value, assigning an empty value to a shell variable when calling a function produces non-portable behavior: in some shells, the assignment lasts for the duration of the function invocation, and in others, it persists after the function returns. Use an explicit subshell with the envvar exported to make the behavior consistent across shells and crystal clear. All previous instances of this pattern used "VAR=value" (with nonempty `value`), which is already diagnosed automatically by "make test-lint" since a0a630192d (t/check-non-portable-shell: detect "FOO=bar shell_func", 2018-07-13). Noticed using an improved "make test-lint". Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/RelNotes/1.8.5.txt')
0 files changed, 0 insertions, 0 deletions