Skip to content

Commit b586d8c

Browse files
committed
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
2 parents 5b67f9a + 5c63920 commit b586d8c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

t/t4204-patch-id.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ test_expect_success 'patch-id output is well-formed' '
3030

3131
#calculate patch id. Make sure output is not empty.
3232
calc_patch_id () {
33-
name="$1"
33+
patch_name="$1"
3434
shift
3535
git patch-id "$@" |
36-
sed "s/ .*//" >patch-id_"$name" &&
37-
test_line_count -gt 0 patch-id_"$name"
36+
sed "s/ .*//" >patch-id_"$patch_name" &&
37+
test_line_count -gt 0 patch-id_"$patch_name"
3838
}
3939

4040
get_top_diff () {

0 commit comments

Comments
 (0)