git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git svn --stdlayout 's little quirk.
@ 2011-08-20 17:06 Hin-Tak Leung
  2011-08-20 18:35 ` Eric Wong
  0 siblings, 1 reply; 8+ messages in thread
From: Hin-Tak Leung @ 2011-08-20 17:06 UTC (permalink / raw)
  To: madduck, normalperson, git

first of all, thanks for a great tool - use it daily!

I think I found a small bug in git 1.7.6. Having "trunk" at the end of the url in combination of --stdlayout is wrong, but it looks like that git-svn tries to cope, but doesn't go try far enough:

Doing this:
----------------
git svn clone --stdlayout http://quick-settings.googlecode.com/svn/trunk/ android-quick-settings
----------------

Gives this message and stops:
----------------
Initialized empty Git repository in /home/Hin-Tak/tmp-git/svn-imports/android-quick-settings/.git/
Using higher level of URL: http://quick-settings.googlecode.com/svn/trunk => http://quick-settings.googlecode.com/svn
----------------

When I saw the message I thought it is striping the ending 'trunk' for my convenience, but when I look at .git/config:

--------------------
$ more .git/config 
[core]
	repositoryformatversion = 0
	filemode = true
	bare = false
	logallrefupdates = true
[svn-remote "svn"]
	url = http://quick-settings.googlecode.com/svn
	fetch = trunk/trunk:refs/remotes/trunk
	branches = trunk/branches/*:refs/remotes/*
	tags = trunk/tags/*:refs/remotes/tags/*
------------------

It is doing 'trunk/trunk', etc, which is why it stopped.

Can it either clone correctly despite the wrong instruction, or fail with a better message than 'Using higher level...' which suggests it tried?

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

end of thread, other threads:[~2011-08-23  6:09 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-20 17:06 git svn --stdlayout 's little quirk Hin-Tak Leung
2011-08-20 18:35 ` Eric Wong
2011-08-21  9:38   ` Hin-Tak Leung
2011-08-22  9:01     ` Michael J Gruber
2011-08-22 15:11       ` Hin-Tak Leung
2011-08-22 15:28         ` Michael J Gruber
2011-08-22 15:57           ` Hin-Tak Leung
2011-08-23  6:09           ` Andreas Krey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).