* [PATCH] Use a relative path for SVN importing
@ 2006-02-11 15:44 Christian Biesinger
2006-02-11 17:04 ` Christian Biesinger
2006-02-13 20:52 ` git-svnimport -d and -D options (was Re: [PATCH] Use a relative path for SVN importing) Eduardo Pereira Habkost
0 siblings, 2 replies; 3+ messages in thread
From: Christian Biesinger @ 2006-02-11 15:44 UTC (permalink / raw)
To: git
The absolute path (with the leading slash) breaks SVN importing, because it then
looks for /trunk/... instead of /svn/trunk/... (in my case, the repository URL
was https://servername/svn/)
Signed-off-by: Christian Biesinger <cbiesinger@web.de>
---
git-svnimport.perl | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
7718b5a5fec01c0774f6b9cdc84f908e68b403ac
diff --git a/git-svnimport.perl b/git-svnimport.perl
index b6799d8..f17d5a2 100755
--- a/git-svnimport.perl
+++ b/git-svnimport.perl
@@ -318,7 +318,7 @@ sub get_file($$$) {
die $res->status_line." at $url\n";
}
} else {
- $name = $svn->file("/$svnpath",$rev);
+ $name = $svn->file("$svnpath",$rev);
return undef unless defined $name;
}
--
1.1.6.g486a-dirty
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] Use a relative path for SVN importing
2006-02-11 15:44 [PATCH] Use a relative path for SVN importing Christian Biesinger
@ 2006-02-11 17:04 ` Christian Biesinger
2006-02-13 20:52 ` git-svnimport -d and -D options (was Re: [PATCH] Use a relative path for SVN importing) Eduardo Pereira Habkost
1 sibling, 0 replies; 3+ messages in thread
From: Christian Biesinger @ 2006-02-11 17:04 UTC (permalink / raw)
To: git
Christian Biesinger wrote:
> The absolute path (with the leading slash) breaks SVN importing, because it then
> looks for /trunk/... instead of /svn/trunk/... (in my case, the repository URL
> was https://servername/svn/)
I also tested a svn+ssh case and that works too (it also worked before,
oddly enough).
^ permalink raw reply [flat|nested] 3+ messages in thread
* git-svnimport -d and -D options (was Re: [PATCH] Use a relative path for SVN importing)
2006-02-11 15:44 [PATCH] Use a relative path for SVN importing Christian Biesinger
2006-02-11 17:04 ` Christian Biesinger
@ 2006-02-13 20:52 ` Eduardo Pereira Habkost
1 sibling, 0 replies; 3+ messages in thread
From: Eduardo Pereira Habkost @ 2006-02-13 20:52 UTC (permalink / raw)
To: Christian Biesinger; +Cc: git, Matthias Urlichs
[-- Attachment #1: Type: text/plain, Size: 959 bytes --]
Hi,
On Sat, Feb 11, 2006 at 04:44:11PM +0100, Christian Biesinger wrote:
> The absolute path (with the leading slash) breaks SVN importing, because it then
> looks for /trunk/... instead of /svn/trunk/... (in my case, the repository URL
> was https://servername/svn/)
I've hit this bug today, and fortunately I've found the fix from
Christian. Thanks! :)
I am wondering if this bug was the initial reason why the -d and -D
options where added to git-svnimport.
Is there another real reason why the -d and -D options exist in
git-svnimport?
The documentation for the options say that the "wrong" option will die
with 40x, but the commit message[1] says something about "internal server
error". I don't know which one is right.
Mathias, couldn't be the errors you described in the commit message
related to this bug?
[1] http://www.kernel.org/git/?p=git/git.git;a=commit;h=25f6f325d7a8f7cb686a9ffd9fa2c00b3aa85a60
--
Eduardo
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-02-13 20:47 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-11 15:44 [PATCH] Use a relative path for SVN importing Christian Biesinger
2006-02-11 17:04 ` Christian Biesinger
2006-02-13 20:52 ` git-svnimport -d and -D options (was Re: [PATCH] Use a relative path for SVN importing) Eduardo Pereira Habkost
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).