Git development
 help / color / mirror / Atom feed
* git svn init --username ignored
@ 2009-03-29 21:56 Lachlan Deck
  2009-03-29 22:41 ` Eric Wong
  0 siblings, 1 reply; 4+ messages in thread
From: Lachlan Deck @ 2009-03-29 21:56 UTC (permalink / raw)
  To: git

Hi there,

Is it a bug that the when specifying --username=foo for either git-svn  
init or git-svn clone  that this isn't stored in .git/config?

It means that for http[s] urls you need to specify it each time for  
git-svn fetch, for example.

Is there any way to specify it manually in the config file - or would  
that have some bad consequences?

Thanks.

with regards,
--

Lachlan Deck

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: git svn init --username ignored
  2009-03-29 21:56 git svn init --username ignored Lachlan Deck
@ 2009-03-29 22:41 ` Eric Wong
  2009-03-29 23:50   ` Lachlan Deck
  0 siblings, 1 reply; 4+ messages in thread
From: Eric Wong @ 2009-03-29 22:41 UTC (permalink / raw)
  To: Lachlan Deck; +Cc: git

Lachlan Deck <lachlan.deck@gmail.com> wrote:
> Hi there,
>
> Is it a bug that the when specifying --username=foo for either git-svn  
> init or git-svn clone  that this isn't stored in .git/config?
>
> It means that for http[s] urls you need to specify it each time for  
> git-svn fetch, for example.
>
> Is there any way to specify it manually in the config file - or would  
> that have some bad consequences?

Hi,

Subversion already stores credential information in ~/.subversion/ which
git svn should respect and use if available and allowed to.  Did you
disable set "store-auth-creds = no" in your ~/.subversion/config ?

-- 
Eric Wong

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: git svn init --username ignored
  2009-03-29 22:41 ` Eric Wong
@ 2009-03-29 23:50   ` Lachlan Deck
  2009-03-30  3:54     ` Eric Wong
  0 siblings, 1 reply; 4+ messages in thread
From: Lachlan Deck @ 2009-03-29 23:50 UTC (permalink / raw)
  To: Eric Wong; +Cc: git

On 30/03/2009, at 9:41 AM, Eric Wong wrote:

> Lachlan Deck <lachlan.deck@gmail.com> wrote:
>> Hi there,
>>
>> Is it a bug that the when specifying --username=foo for either git- 
>> svn
>> init or git-svn clone  that this isn't stored in .git/config?
>>
>> It means that for http[s] urls you need to specify it each time for
>> git-svn fetch, for example.
>>
>> Is there any way to specify it manually in the config file - or would
>> that have some bad consequences?
>
> Subversion already stores credential information in ~/.subversion/  
> which
> git svn should respect and use if available and allowed to.  Did you
> disable set "store-auth-creds = no" in your ~/.subversion/config ?

No, it's still commented out.

I simply started by doing:
git svn clone https://somedomain/repo repo --username=lachlan -s
cd repo
git svn fetch // failed without --username

In case the initial passing of --username is tripping it up, I'm  
trying again without specifying it.

with regards,
--

Lachlan Deck

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: git svn init --username ignored
  2009-03-29 23:50   ` Lachlan Deck
@ 2009-03-30  3:54     ` Eric Wong
  0 siblings, 0 replies; 4+ messages in thread
From: Eric Wong @ 2009-03-30  3:54 UTC (permalink / raw)
  To: Lachlan Deck; +Cc: git

Lachlan Deck <lachlan.deck@gmail.com> wrote:
> On 30/03/2009, at 9:41 AM, Eric Wong wrote:
>
>> Lachlan Deck <lachlan.deck@gmail.com> wrote:
>>> Hi there,
>>>
>>> Is it a bug that the when specifying --username=foo for either git- 
>>> svn
>>> init or git-svn clone  that this isn't stored in .git/config?
>>>
>>> It means that for http[s] urls you need to specify it each time for
>>> git-svn fetch, for example.
>>>
>>> Is there any way to specify it manually in the config file - or would
>>> that have some bad consequences?
>>
>> Subversion already stores credential information in ~/.subversion/  
>> which
>> git svn should respect and use if available and allowed to.  Did you
>> disable set "store-auth-creds = no" in your ~/.subversion/config ?
>
> No, it's still commented out.
>
> I simply started by doing:
> git svn clone https://somedomain/repo repo --username=lachlan -s
> cd repo
> git svn fetch // failed without --username
>
> In case the initial passing of --username is tripping it up, I'm trying 
> again without specifying it.

Does "svn ls https://somedomain/repo" prompt you for a username?  Does
repeating that command (after successfully running it once) still prompt
you? (it shouldn't prompt you again if you have auth caching on).

If "svn ls" is prompting you every time, then SVN auth caching is
somehow disabled/broken on you system.  You can try poking around inside
your ~/.subversion/ directory and see if there's permissions problems
or such...

-- 
Eric Wong

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-03-30  3:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-29 21:56 git svn init --username ignored Lachlan Deck
2009-03-29 22:41 ` Eric Wong
2009-03-29 23:50   ` Lachlan Deck
2009-03-30  3:54     ` Eric Wong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox