Skip to content

Commit 4d0157d

Browse files
author
Eric Wong
committed
git svn: always reuse existing remotes on fetch
The internal no_reuse_existing flag is set to allow initializing multiple remotes with the same URL, common with SVM users. Unfortunately, this flag caused misbehavior when used with the -R command-line flag for fetching. Signed-off-by: Eric Wong <normalperson@yhbt.net>
1 parent 39add7a commit 4d0157d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

git-svn.perl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -428,6 +428,7 @@ sub cmd_fetch {
428428
if (@_ > 1) {
429429
die "Usage: $0 fetch [--all] [--parent] [svn-remote]\n";
430430
}
431+
$Git::SVN::no_reuse_existing = undef;
431432
if ($_fetch_parent) {
432433
my ($url, $rev, $uuid, $gs) = working_head_info('HEAD');
433434
unless ($gs) {
@@ -956,6 +957,7 @@ sub cmd_multi_init {
956957
}
957958

958959
sub cmd_multi_fetch {
960+
$Git::SVN::no_reuse_existing = undef;
959961
my $remotes = Git::SVN::read_all_remotes();
960962
foreach my $repo_id (sort keys %$remotes) {
961963
if ($remotes->{$repo_id}->{url}) {

0 commit comments

Comments
 (0)