threads / discuss / 43260

Re: how to authenticate with git-svn on a subversion repository

Subject: Re: how to authenticate with git-svn on a subversion repository

## tl;dr

5 messages between Nov 14, 2006 and Nov 19, 2006.

replies: 4people: 5as markdown or json

Comète· Nov 14, 2006, 14:32 UTC · lore

how to authenticate with git-svn on a subversion repository

hello !

i would like to use git-svn to commit some modifications to a Subversion repository but i don't know where i can enter my username and password to commit to the repository ? Is there any special file to put them. For now i get an error:

# git-svn commit remotes/git-svn
Autorisation refusée: MKACTIVITY de 
'/svn/!svn/act/8115f5df-c0da-4a6d-91ef-135dcb76141c': Échec à 
l'autorisation (http://projet.archlinuxfr.org) at /usr/bin/git-svn line 553
512 at /usr/bin/git-svn line 574
	main::commit_lib('f45ba41060287fedfcedfb5fc4c29ecfe30a7466') called at 
/usr/bin/git-svn line 480
	main::commit('remotes/git-svn') called at /usr/bin/git-svn line 172
Thanks
Sam Vilain· Nov 15, 2006, 23:39 UTC · re: Comète · lore
Comète wrote:
Show 16 quoted lines
> hello !
>
> i would like to use git-svn to commit some modifications to a Subversion 
> repository but i don't know where i can enter my username and password 
> to commit to the repository ? Is there any special file to put them.
> For now i get an error:
>
> # git-svn commit remotes/git-svn
> Autorisation refusée: MKACTIVITY de 
> '/svn/!svn/act/8115f5df-c0da-4a6d-91ef-135dcb76141c': Échec à 
> l'autorisation (http://projet.archlinuxfr.org) at /usr/bin/git-svn line 553
> 512 at /usr/bin/git-svn line 574
> 	main::commit_lib('f45ba41060287fedfcedfb5fc4c29ecfe30a7466') called at 
> /usr/bin/git-svn line 480
> 	main::commit('remotes/git-svn') called at /usr/bin/git-svn line 172
>   
Two questions;
 - have you tried this with Git 1.4.4?  There have been some git-svn updates
 - which version of the SVN Perl bindings are you using?
Martin Langhoff· Nov 16, 2006, 06:59 UTC · re: Comète · lore
Hi Comete,

authentication with the SVN stuff is really weird. git-svn and git-svnimport use the SVN libraries so that means that if you do

   svn login proto://host/path/to/repo
   git-svn proto://host/path/to/repo
it works because svn magic cookies get stored in ~/.svn.
cheers,
Seth Falcon· Nov 16, 2006, 15:27 UTC · re: Comète · lore
Comète <comete@archlinuxfr.org> writes:
Show 7 quoted lines
> hello !
>
> i would like to use git-svn to commit some modifications to a
> Subversion repository but i don't know where i can enter my username
> and password to commit to the repository ? Is there any special file
> to put them.
> For now i get an error:

There may be a better way, but if you just use the svn command line client to create a small working copy from the repository, you will have a place to enter credentials and they will be cached in ~/.subversion and git-svn will find them.

Anand Kumria· Nov 19, 2006, 00:43 UTC · re: Seth Falcon · lore
On Thu, 16 Nov 2006 07:27:57 -0800, Seth Falcon wrote:
Show 12 quoted lines
> Comète <comete@archlinuxfr.org> writes:
> 
>> hello !
>>
>> i would like to use git-svn to commit some modifications to a
>> Subversion repository but i don't know where i can enter my username
>> and password to commit to the repository ? Is there any special file
>> to put them.
>> For now i get an error:
> 
> There may be a better way, but if you just use the svn command line
> client to create a small working copy from the repository, you will

Or, even simpler, use: svn info <url> which will cache the credentials and not require a working copy.

Anand

← back to recent threads