Posted by Vince Wadhwani on Jul 08, 2006

I have subversion set up on my Ubuntu Dapper Drake system and started using it from a Mac running Apple's Tiger OS (OS X 10.4.7) When I ran svn commit I got an error about SVN_EDITOR not being defined. Fortunately there is an easy fix.

You just need to set the environment variable from the command line by typing:

export SVN_EDITOR=/usr/bin/vi

Assuming you are running bash, you can add the following line to your .bash_login file so you don't need to retype it every time you open a terminal window.