diff options
author | Junio C Hamano <gitster@pobox.com> | 2016-05-29 18:06:43 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-05-29 18:06:43 -0700 |
commit | b586d8c733cee142b5b986886e610b09f6f03897 (patch) | |
tree | 9a046d59e10e574146c15efbcf4d6ba78ccb0caf /t | |
parent | Merge branch 'rj/log-decorate-auto' (diff) | |
parent | t4204: do not let $name variable clobbered (diff) | |
download | tgif-b586d8c733cee142b5b986886e610b09f6f03897.tar.xz |
Merge branch 'ak/t4204-shell-portability'
Update a test to run also under ksh88.
* ak/t4204-shell-portability:
t4204: do not let $name variable clobbered
Diffstat (limited to 't')
-rwxr-xr-x | t/t4204-patch-id.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/t/t4204-patch-id.sh b/t/t4204-patch-id.sh index baa9d3c82e..84a809690e 100755 --- a/t/t4204-patch-id.sh +++ b/t/t4204-patch-id.sh @@ -30,11 +30,11 @@ test_expect_success 'patch-id output is well-formed' ' #calculate patch id. Make sure output is not empty. calc_patch_id () { - name="$1" + patch_name="$1" shift git patch-id "$@" | - sed "s/ .*//" >patch-id_"$name" && - test_line_count -gt 0 patch-id_"$name" + sed "s/ .*//" >patch-id_"$patch_name" && + test_line_count -gt 0 patch-id_"$patch_name" } get_top_diff () { |