author | Deskin Miller <deskinm@umich.edu> | |
Tue, 2 Dec 2008 02:43:00 +0000 (21:43 -0500) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 3 Dec 2008 09:54:24 +0000 (01:54 -0800) | ||
commit | a0fbc87cff6ae80c5b5be84201bc53252533b1fb | |
tree | 74a1a8ec7bdb55050e1b1e893b0e527aea89fba2 | tree | snapshot |
parent | 757c7f60a78004fc3d0ea62f44320d54ef430c10 | commit | diff |
git-svn: Make branch use correct svn-remote
The 'branch' subcommand incorrectly had the svn-remote to use hardcoded
as 'svn', the default remote name. This meant that branches derived
from other svn-remotes would try to use the branch and tag configuration
for the 'svn' remote, potentially copying would-be branches to the wrong
place in SVN, into the branch namespace for another project.
Fix this by using the remote name extracted from the svn info for the
specified git ref. Add a testcase for this behaviour.
[jc: squashed in a fix to test from Michael J Gruber for older svn (1.4)]
Signed-off-by: Deskin Miller <deskinm@umich.edu>
Acked-by: Eric Wong <normalperson@yhbt.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
The 'branch' subcommand incorrectly had the svn-remote to use hardcoded
as 'svn', the default remote name. This meant that branches derived
from other svn-remotes would try to use the branch and tag configuration
for the 'svn' remote, potentially copying would-be branches to the wrong
place in SVN, into the branch namespace for another project.
Fix this by using the remote name extracted from the svn info for the
specified git ref. Add a testcase for this behaviour.
[jc: squashed in a fix to test from Michael J Gruber for older svn (1.4)]
Signed-off-by: Deskin Miller <deskinm@umich.edu>
Acked-by: Eric Wong <normalperson@yhbt.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-svn.perl | diff | blob | history | |
t/t9128-git-svn-cmd-branch.sh | diff | blob | history |