git-svn: don't drop the username from URLs when dcommit is run
authorEric Wong <normalperson@yhbt.net>
Sat, 12 May 2007 21:36:20 +0000 (14:36 -0700)
committerJunio C Hamano <junkio@cox.net>
Sun, 13 May 2007 19:10:42 +0000 (12:10 -0700)
We no longer store usernames in URLs stored in git-svn-id lines
for dcommit, so we shouldn't rely on those URLs when connecting
to the remote repository to commit.

git-svn.perl

index 3c4f490b742c18b6ba96217f0dc1abb4af054e21..d74e6d3112eb6ad444df35a1dae1fc4fab2afb00 100755 (executable)
@@ -393,7 +393,7 @@ sub cmd_dcommit {
                } else {
                        my %ed_opts = ( r => $last_rev,
                                        log => get_commit_entry($d)->{log},
-                                       ra => Git::SVN::Ra->new($url),
+                                       ra => Git::SVN::Ra->new($gs->full_url),
                                        tree_a => "$d~1",
                                        tree_b => $d,
                                        editor_cb => sub {