Skip to content

Commit 9de51db

Browse files
committed
Issue #388 - Use bash echo for git-credential-env
sh is not consistent in its support of the echo builtin's -e flag. On debian sh is symlinked to dash, which does not support the flag resulting in bad credential output. Unfortunately /bin/echo is also nonstandard - e.g. on macs -e is not supported while it is on debian. I think the best approach is to rely on bash's echo builtin which should be consistent across systems (at the slight cost of requiring bash as a dependency)
1 parent cf15329 commit 9de51db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docker/git-credential-env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
#!/bin/sh
1+
#!/bin/bash
22
echo -e $GIT_CREDENTIAL_ENV

0 commit comments

Comments
 (0)