Skip to content

Commit 9342f49

Browse files
committed
Merge branch 'bw/use-write-script-in-tests'
* bw/use-write-script-in-tests: t/lib-credential: use write_script
2 parents b2c45f5 + c049216 commit 9342f49

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

t/lib-credential.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -278,12 +278,10 @@ helper_test_timeout() {
278278
'
279279
}
280280

281-
cat >askpass <<\EOF
282-
#!/bin/sh
281+
write_script askpass <<\EOF
283282
echo >&2 askpass: $*
284283
what=$(echo $1 | cut -d" " -f1 | tr A-Z a-z | tr -cd a-z)
285284
echo "askpass-$what"
286285
EOF
287-
chmod +x askpass
288286
GIT_ASKPASS="$PWD/askpass"
289287
export GIT_ASKPASS

0 commit comments

Comments
 (0)