Git development
 help / color / mirror / Atom feed
* git-svn not working when parent of cloned dir requires auth
@ 2008-12-08 20:54 D. Stuart Freeman
  2008-12-08 21:30 ` Junio C Hamano
  0 siblings, 1 reply; 4+ messages in thread
From: D. Stuart Freeman @ 2008-12-08 20:54 UTC (permalink / raw)
  To: git

[-- Attachment #1: Type: text/plain, Size: 395 bytes --]

I'm trying to
'git svn clone https://mware.ucdavis.edu/svn/ucd-sakai/gradebook-gwt -s'
that repo is setup to allow anonymous reading of that directory tree, but
git-svn prompts me for a password.  I think git-svn is traversing up the
directory tree and encountering a directory that needs authn, can I prevent
it from doing that?

-- 
D. Stuart Freeman
Georgia Institute of Technology

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

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

* Re: git-svn not working when parent of cloned dir requires auth
  2008-12-08 20:54 git-svn not working when parent of cloned dir requires auth D. Stuart Freeman
@ 2008-12-08 21:30 ` Junio C Hamano
  2008-12-08 22:07   ` D. Stuart Freeman
  2008-12-08 23:20   ` Eric Wong
  0 siblings, 2 replies; 4+ messages in thread
From: Junio C Hamano @ 2008-12-08 21:30 UTC (permalink / raw)
  To: D. Stuart Freeman; +Cc: git, Eric Wong

"D. Stuart Freeman" <stuart.freeman@et.gatech.edu> writes:

> I'm trying to
> 'git svn clone https://mware.ucdavis.edu/svn/ucd-sakai/gradebook-gwt -s'
> that repo is setup to allow anonymous reading of that directory tree, but
> git-svn prompts me for a password.  I think git-svn is traversing up the
> directory tree and encountering a directory that needs authn, can I prevent
> it from doing that?

That sounds suspiciously similar to what I observed long time ago:

  http://thread.gmane.org/gmane.comp.version-control.git/46361/focus=46558

And $gmane/47151 in the thread, aka dc43166 (git-svn: don't minimize-url
when doing an init that tracks multiple paths, 2007-05-19), supposed to
have fixed it.

Hmm...  Eric?

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

* Re: git-svn not working when parent of cloned dir requires auth
  2008-12-08 21:30 ` Junio C Hamano
@ 2008-12-08 22:07   ` D. Stuart Freeman
  2008-12-08 23:20   ` Eric Wong
  1 sibling, 0 replies; 4+ messages in thread
From: D. Stuart Freeman @ 2008-12-08 22:07 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: git, Eric Wong

[-- Attachment #1: Type: text/plain, Size: 1231 bytes --]

In looking at the source of git-svn, I see:

' # there are currently some bugs that prevent multi-init/multi-fetch
  # setups from working well without this.
  $Git::SVN::_minimize_url = 1;'

I tried setting it to '0' and rerunning my clone.  It no longer prompted
for a password, but it still failed to clone anything. 

On Mon, Dec 08, 2008 at 01:30:06PM -0800, Junio C Hamano wrote:
> "D. Stuart Freeman" <stuart.freeman@et.gatech.edu> writes:
> 
> > I'm trying to
> > 'git svn clone https://mware.ucdavis.edu/svn/ucd-sakai/gradebook-gwt -s'
> > that repo is setup to allow anonymous reading of that directory tree, but
> > git-svn prompts me for a password.  I think git-svn is traversing up the
> > directory tree and encountering a directory that needs authn, can I prevent
> > it from doing that?
> 
> That sounds suspiciously similar to what I observed long time ago:
> 
>   http://thread.gmane.org/gmane.comp.version-control.git/46361/focus=46558
> 
> And $gmane/47151 in the thread, aka dc43166 (git-svn: don't minimize-url
> when doing an init that tracks multiple paths, 2007-05-19), supposed to
> have fixed it.
> 
> Hmm...  Eric?

-- 
D. Stuart Freeman
Georgia Institute of Technology

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

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

* Re: git-svn not working when parent of cloned dir requires auth
  2008-12-08 21:30 ` Junio C Hamano
  2008-12-08 22:07   ` D. Stuart Freeman
@ 2008-12-08 23:20   ` Eric Wong
  1 sibling, 0 replies; 4+ messages in thread
From: Eric Wong @ 2008-12-08 23:20 UTC (permalink / raw)
  To: D. Stuart Freeman; +Cc: git, Junio C Hamano

Junio C Hamano <gitster@pobox.com> wrote:
> "D. Stuart Freeman" <stuart.freeman@et.gatech.edu> writes:
> 
> > I'm trying to
> > 'git svn clone https://mware.ucdavis.edu/svn/ucd-sakai/gradebook-gwt -s'
> > that repo is setup to allow anonymous reading of that directory tree, but
> > git-svn prompts me for a password.  I think git-svn is traversing up the
> > directory tree and encountering a directory that needs authn, can I prevent
> > it from doing that?
> 
> That sounds suspiciously similar to what I observed long time ago:
> 
>   http://thread.gmane.org/gmane.comp.version-control.git/46361/focus=46558
> 
> And $gmane/47151 in the thread, aka dc43166 (git-svn: don't minimize-url
> when doing an init that tracks multiple paths, 2007-05-19), supposed to
> have fixed it.

There are some other auth issues that I'm not sure ever got resolved.
The SVN path->branch mapping code is a mess and has needed a rework for
a while...  And I've gotten sick again this weekend.  Tis the season...

Stuart:

For now, running the old style one-connection per-remote config
may be the easiest way to go:

------------ in your .git/config: ---------
[svn-remote "svn"]
        url = https://mware.ucdavis.edu/svn/ucd-sakai/gradebook-gwt/trunk
        fetch = :refs/remotes/trunk
[svn-remote "bloatedGxtAndVanilla"]
        url = https://mware.ucdavis.edu/svn/ucd-sakai/gradebook-gwt/branches/bloatedGxtAndVanilla
        fetch = :refs/remotes/bloatedGxtAndVanilla
[svn-remote "pre-GXT"]
        url = https://mware.ucdavis.edu/svn/ucd-sakai/gradebook-gwt/branches/pre-GXT
        fetch = :refs/remotes/pre-GXT
-------------------------------------------

Then run "git-svn fetch -i $SVN_REMOTE" for each svn-remote

-- 
Eric Wong

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

end of thread, other threads:[~2008-12-08 23:21 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-08 20:54 git-svn not working when parent of cloned dir requires auth D. Stuart Freeman
2008-12-08 21:30 ` Junio C Hamano
2008-12-08 22:07   ` D. Stuart Freeman
2008-12-08 23:20   ` Eric Wong

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