Wykres commitów

3 Commity (8f29686fb671e4db8fac2b3a078cf9e984620cc3)

Autor SHA1 Wiadomość Data
Min RK a69145fcdd missing quotes in GIT_CREDENTIAL_ENV
echo without quotes removes newline, echo with quotes preserves it.

Previously failing test added
2019-01-31 10:48:18 +01:00
Luke Zulauf 9de51dbbbd 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)
2018-09-06 11:19:57 -07:00
Min RK 504aeb7300 add git-credential-env
and configure git to use it by default

`git-credential-env` only echoes the $GIT_CREDENTIAL_ENV environment variable
when git asks for https credentials.

with this, setting GIT_CREDENTIAL_ENV="username=name\npassword=xxx" sets the credentials
that will be used.

e.g.

    docker run -e GIT_CREDENTIAL_ENV="username=name\npassword=xxx" jupyter/repo2docker https://github.com/private/repo
2017-11-17 16:05:46 +01:00