Comment 5 for bug 1297559

Revision history for this message
Martijn Evers (mevers) wrote :

For those running into problems, with 1.18. This is a work-around:

On the machine producing the error, execute this (copy-paste safe):

sudo mv /usr/bin/git /usr/bin/git.unpatched
echo -e '#!/bin/bash\nGIT_BIN=/usr/bin/git.unpatched\nif [ "clone" == "$1" ]; then\n'\
'\t"$GIT_BIN" clone --config user.email=juju@localhost --config user.name=juju "${@:2}"\n'\
'else\n\t"$GIT_BIN" "$@"\nfi'\
| sudo tee /usr/bin/git > /dev/null
sudo chmod +x /usr/bin/git