cvs + SSH in XCode

z4ph0d

Raving Mad Mac Evangelist
To get CVS working in XCode, you need to do the following:

1. create ~/.MacOSX/.environment.plist
cd && mkdir .MacOSX && cd .MacOSX && touch .environment.plist && open -a TextEdit .environment.plist

2. paste+edit the xml text below
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CVSROOT</key>
<string>:ext:user@host.com:/path/to/cvsroot</string>
<key>CVS_RSH</key>
<string>ssh</string>
</dict>
</plist>


3. Save the file
4. Log out and back in again

You can safely uncheck the "use ssh instead of rsh for external connections" in the edit cvs pane :D

The reason for having to do this is that the environment that cvs runs in hasn't loaded variables that are set in bash or tcsh as in the "traditional" methods have done it before..
 
Back
Top