@matheusbsbs / matheus-bagliano / commits / 4d0157d699
Fork 0

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>

Eric Wong committed Nov 22, 2009 at 12:37 UTC 4d0157d6995925ea55ff181ea94d058583333f90
1 file changed +2
git-svn.perl
+2
@@ -428,6 +428,7 @@ sub cmd_fetch {
428 if (@_ > 1) {
429 die "Usage: $0 fetch [--all] [--parent] [svn-remote]\n";
430 }
431 + $Git::SVN::no_reuse_existing = undef;
432 if ($_fetch_parent) {
433 my ($url, $rev, $uuid, $gs) = working_head_info('HEAD');
434 unless ($gs) {
@@ -956,6 +957,7 @@ sub cmd_multi_init {
957 }
958
959 sub cmd_multi_fetch {
960 + $Git::SVN::no_reuse_existing = undef;
961 my $remotes = Git::SVN::read_all_remotes();
962 foreach my $repo_id (sort keys %$remotes) {
963 if ($remotes->{$repo_id}->{url}) {