Thursday, June 14, 2007

"E32: No file name" vi error upon svn commit (editor-cmd = vi)

Error: When I was configuring svn to use vi editor for commit comments I run into “E32: No file name” vi error upon exiting vi. Also editor showed me the welcome screen instead pre-populated svn message.

Cause: When editing my svn config file I left the default comment at the end of editor-cmd variable so my config string was like this: “editor-cmd = vi #(vi, emacs, notepad, etc.)”. It caused svn to pass all that #garbage to vi followed by space and actual name of the comments file to be edited in vi.

Fix: Remove all the garbage after the editor executable name unless you want it to be passed to editor as an extra parameters before the file name. The config string should look like this: “editor-cmd = vi

Labels: , ,

0 Comments:

Post a Comment

<< Home