If you get C:\Program: bad interpreter
when running git-review
from the git bash shell on Windows (this happens when Pythong is installed inside the Program Files folder), you can fix it by opening the git-review script file (probably C:\Program Files\Python\PythonXX\Scripts\git-review
) and in the first line (the one starting with #!
) changing Program Files
to Progra~1
.
Topic on Talk:Gerrit/git-review
Appearance
I had the same problem. This fix worked. I had already used the Progra~1
substitution in the git-review.bat
file.
My installation of git-review
resides at C:\Program Files\Python27\Scripts\
There is a bug report here.
So after 5 years this has changed a bit. I went into the directory at: `C:\Program Files\Python27\Scripts\`
I had no git-review file but I did have a plain old `aws` file without an extension. I opened this and changed the `Program Files` piece of the directory path to `Progra~1` as mentioned by the others.
Thanks!
thanks