Daily Fix - Tuesday, April 15 2008
I needed to check in some subversion code that lived on someone else’s machine, and normally that code is managed via Eclipse/Subclipse. However, I couldn’t launch Eclipse “as them”, even though I could access the code via the command line. The problem was that the code is checked out via svn+ssh, and I didn’t know the user’s ssh password, so I needed it to be checked in as me. There is no obvious way to do this via svn command. Turns out you need to set an environment variable (this appears to be a recurring theme thus far in this series). Set SVN_SSH to:
ssh -l
As in:
SVN_SSH=”ssh -l someuser”; export SVN_SSH
where someuser is a user for whom you know the password/have credentials. It should then act as though someuser is doing the committing.