git-svn: support for git-svn propset
[gitweb.git] / t / lib-credential.sh
index 957ae936e8b785f8b1afbffd9a5918a3260d213f..d8e41f7ddd155b9f2861f55ab97943fed28968e7 100755 (executable)
@@ -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`
+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