Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

git-svn: how to change the svn username on dcommit?

Tags:

git-svn

I cloned a SVN repository into a git repository using git svn clone. At that point in time, I did not have a username at that site and hence didn't use the --username option of clone. As I can now commit to the SVN repository with my new username, I would like to add that username. Without it, dcommit simply fails:

% LANG=C git svn dcommit 
Committing to <THE URL> ...
RA layer request failed: Server sent unexpected return value (405 Method Not Allowed) in response to MKACTIVITY request for '/svn/!svn/act/0ceca4c5-f7b4-4432-94be-0485559a6040' at /usr/lib/git-core/git-svn line 945.

Is there a way to tell git about a new username? The git-svn manual doesn't seem to help: adding a username is only allowed on init and branch. I don't know how git works with SVN internally, but I guess there should be a way to add a username afterwards.

Note that I am using SVN over http.

like image 573
evnu Avatar asked Nov 14 '22 00:11

evnu


1 Answers

You can specify the username in the dcommit command, e.g.

git svn dcommit --username=isapir
like image 188
isapir Avatar answered Jan 08 '23 17:01

isapir