summaryrefslogtreecommitdiff
path: root/perl/Git/SVN.pm
diff options
context:
space:
mode:
authorLibravatar Ramkumar Ramachandra <artagnon@gmail.com>2015-01-10 09:35:10 -0500
committerLibravatar Eric Wong <normalperson@yhbt.net>2015-01-15 08:35:55 +0000
commit9a2bb059e76b1368392f86ecf7af2ba188e3cac5 (patch)
tree152ee39bd2be4297f27b4642aa0a1788c6d23dba /perl/Git/SVN.pm
parentFifth batch for 2.3 cycle (diff)
downloadtgif-9a2bb059e76b1368392f86ecf7af2ba188e3cac5.tar.xz
Git::SVN: handle missing ref_id case correctly
ref_id should not match "refs/remotes/". [ew: dropped initial hunk for GIT_SVN_ID at Ramkumar's request] Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com> Signed-off-by: Eric Wong <normalperson@yhbt.net>
Diffstat (limited to 'perl/Git/SVN.pm')
-rw-r--r--perl/Git/SVN.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl/Git/SVN.pm b/perl/Git/SVN.pm
index d9a52a52df..8e4af7153e 100644
--- a/perl/Git/SVN.pm
+++ b/perl/Git/SVN.pm
@@ -2365,7 +2365,7 @@ sub _new {
# Older repos imported by us used $GIT_DIR/svn/foo instead of
# $GIT_DIR/svn/refs/remotes/foo when tracking refs/remotes/foo
- if ($ref_id =~ m{^refs/remotes/(.*)}) {
+ if ($ref_id =~ m{^refs/remotes/(.+)}) {
my $old_dir = "$ENV{GIT_DIR}/svn/$1";
if (-d $old_dir && ! -d $dir) {
$dir = $old_dir;