Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'bw/use-write-script-in-tests'
author
Junio C Hamano
<gitster@pobox.com>
Wed, 8 Oct 2014 20:05:29 +0000
(13:05 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Wed, 8 Oct 2014 20:05:29 +0000
(13:05 -0700)
* bw/use-write-script-in-tests:
t/lib-credential: use write_script
t/lib-credential.sh
patch
|
blob
|
history
raw
(from parent 1:
b2c45f5
)
diff --git
a/t/lib-credential.sh
b/t/lib-credential.sh
index 9e7d7962b0678dceefb93e3706b742cbfdc5b45e..d8e41f7ddd155b9f2861f55ab97943fed28968e7 100755
(executable)
--- a/
t/lib-credential.sh
+++ b/
t/lib-credential.sh
@@
-278,12
+278,10
@@
helper_test_timeout() {
'
}
-cat >askpass <<\EOF
-#!/bin/sh
+write_script askpass <<\EOF
echo >&2 askpass: $*
what=$(echo $1 | cut -d" " -f1 | tr A-Z a-z | tr -cd a-z)
echo "askpass-$what"
EOF
-chmod +x askpass
GIT_ASKPASS="$PWD/askpass"
export GIT_ASKPASS