various: add read-only mode support
[girocco.git] / bin / git-askpass-password
blob2674c848a64490073098526cafe6ebbd447c260d
1 #!/bin/sh
3 # Provide a password via the GIT_ASKPASS mechanism.
4 # The value of the GIT_ASKPASS_PASSWORD environment variable is used.
5 # If it is unset the password will be empty.
6 # Note that an empty password ("") is different from no password
7 # as would be the case if GIT_ASKPASS were set to the 'true' utility.
8 # While git-svn can handle an empty password, it core dumps on no password.
10 printf '%s\n' "$GIT_ASKPASS_PASSWORD"