Skip to content

Commit

Permalink
Merge branch 'bw/use-write-script-in-tests'
Browse files Browse the repository at this point in the history
* bw/use-write-script-in-tests:
  t/lib-credential: use write_script
  • Loading branch information
Junio C Hamano committed Oct 8, 2014
2 parents b2c45f5 + c049216 commit 9342f49
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions t/lib-credential.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 9342f49

Please sign in to comment.