esrlabs / git-repo

repo - The multiple repository tool (also works on MS Windows!)
https://code.google.com/p/git-repo/
Apache License 2.0
438 stars 145 forks source link

Temp File Isnt Created When Pushing Multiple Repo's #36

Closed AndrewBabbitt97 closed 8 years ago

AndrewBabbitt97 commented 8 years ago

Traceback (most recent call last): File "C:\Users\Andrew\Documents\Ryuusoft\git-repo\main.py", line 538, in _Main(sys.argv[1:]) File "C:\Users\Andrew\Documents\Ryuusoft\git-repo\main.py", line 512, in _Main result = repo._Run(argv) or 0 File "C:\Users\Andrew\Documents\Ryuusoft\git-repo\main.py", line 185, in _Run result = cmd.Execute(copts, cargs) File "C:\Users\Andrew\Documents\Ryuusoft\git-repo\subcmds\push.py", line 388, in Execute self._MultipleBranches(opt, pending) File "C:\Users\Andrew\Documents\Ryuusoft\git-repo\subcmds\push.py", line 182, in _MultipleBranches script = Editor.EditString("\n".join(script)).split("\n") File "C:\Users\Andrew\Documents\Ryuusoft\git-repo\editor.py", line 99, in EditString % (str(e), editor, path)) error.EditorError: editor failed, [Error 2] The system cannot find the file specified: vi c:\users\andrew\appdata\local\temp\tmpd3bd97

AndrewBabbitt97 commented 8 years ago

Nevermind, found out why vi is the default editor which does not appear to be included in git by default. Solution was to set the git editor using git config --global core.editor "vim"

Maybe add this to the readme?

mputz86 commented 8 years ago

Thank you anyway ! - it is already in the documentation (set GIT_EDITOR env var) - you are not the first one who have seen this misleading error message :).