Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'ak/t4204-shell-portability'
author
Junio C Hamano
<gitster@pobox.com>
Mon, 30 May 2016 01:06:43 +0000
(18:06 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Mon, 30 May 2016 01:06:43 +0000
(18:06 -0700)
Update a test to run also under ksh88.
* ak/t4204-shell-portability:
t4204: do not let $name variable clobbered
t/t4204-patch-id.sh
patch
|
blob
|
history
raw
(from parent 1:
5b67f9a
)
diff --git
a/t/t4204-patch-id.sh
b/t/t4204-patch-id.sh
index baa9d3c82e8a54dc7501d90bc9da0527f2a72b2e..84a809690e786c1278d0885b4b441c6ce3bbe4f0 100755
(executable)
--- 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 () {