I am trying to provide a password to git through GIT_ASKPASS like this:
export PASSWORD=<secret>
export GIT_ASKPASS="/usr/bin/echo $PASSWORD"
git clone https://username@domain.com/git-repo/repo.git
But I get:
error: cannot run /usr/bin/echo <secret>: No such file or directory
So it seems I am not allowed to give parameters in GIT_ASKPASS
?
Now I could create a script which just contains:
/usr/bin/echo $PASSWORD
But I am wondering: Is there a way of doing this without creating a temporary script?