fails to handle space in path "bad interpreter: No such file or directory"

Bug #1220836 reported by charlestu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gerrit
New
Undecided
Unassigned
git-review
New
Undecided
Unassigned

Bug Description

Git-review seems to stumble if there is a space in the path to python:

User@BLACKBOX ~/Cite4wiki (master)
$ git-review -s
sh.exe": /c/Program Files/Python27/Scripts/git-review: c:\Program: bad interpreter: No such file or directory

"C:\Program Files\Python27\Scripts\" is in the system path list. A "git-review.bat" file (also in a path directory) contains the line:

@python C:\Progra~1\Python27\Scripts\git-review %*

Using windows vista sp2; git 1.8.3-preview20130601; python 2.7.5.
"git-review" is in "C:\Program Files\Python27\Scripts\" directory.
".gitreview" configuration file is in repository directory.

Tags: windows
Revision history for this message
charlestu (charlestu) wrote :

Found a workaround here:

https://www.mediawiki.org/wiki/Talk:Gerrit/git-review#C:.5CProgram:_bad_interpreter_24676

Tgr suggests that the first line of the "git-review" script file be changed, substituting "Progra~1" for "Program files".

This worked for me.

description: updated
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.