{"thread":{"id":"8220","subject":"[PATCH] git-svn: don't minimize-url when doing an init that tracks multiple paths","startedAt":"2007-05-19T10:59:02Z","lastAt":"2007-05-19T10:59:02Z","messageCount":1,"participants":["Eric Wong"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"42613","messageId":"20070519105902.GB22230@muzzle","threadId":"8220","inReplyTo":null,"subject":"[PATCH] git-svn: don't minimize-url when doing an init that tracks multiple paths","fromName":"Eric Wong","fromEmail":"normalperson@yhbt.net","sentAt":"2007-05-19T10:59:02Z","receivedAt":"2007-05-19T10:59:02Z","isPatch":true,"sender":{"key":"e@80x24.org","avatar":null},"body":"I didn't have a chance to test the off-by-default minimize-url\nstuff enough before, but it's quite broken for people passing\nthe --trunk/-T, --tags/-t, --branches/-b switches to \"init\" or\n\"clone\" commands.\n\nAdditionally, follow-parent functionality seems broken when we're\nnot connected to the root of the repository.\n\nDefault behavior for \"traditional\" git-svn users who only track\none directory (without needing follow-parent) should be\nreasonable, as those users started using things before\nminimize-url functionality existed.\n\nBehavior for users more used to the git-svnimport-like command\nline will also benefit from a more-flexible command-line than\nsvnimport given the assumption they're working with\nnon-restrictive read permissions on the repository.\n\nI hope to properly fix these bugs when I get a chance to in the\nnext week or so, but I would like to get this stopgap measure of\nreverting to the old behavior as soon as possible.\n\nSigned-off-by: Eric Wong <normalperson@yhbt.net>\n---\n git-svn.perl |    5 +++++\n 1 files changed, 5 insertions(+), 0 deletions(-)\n\ndiff --git a/git-svn.perl b/git-svn.perl\nindex 6d0cdac..233f4f2 100755\n--- a/git-svn.perl\n+++ b/git-svn.perl\n@@ -485,6 +485,11 @@ sub cmd_multi_init {\n \tunless (defined $_trunk || defined $_branches || defined $_tags) {\n \t\tusage(1);\n \t}\n+\n+\t# there are currently some bugs that prevent multi-init/multi-fetch\n+\t# setups from working well without this.\n+\t$Git::SVN::_minimize_url = 1;\n+\n \t$_prefix = '' unless defined $_prefix;\n \tif (defined $url) {\n \t\t$url =~ s#/+$##;\n-- \nEric Wong\n"}]}