From: Ian Jackson Date: Tue, 28 Apr 2015 12:26:14 +0000 (+0100) Subject: Fix undef warning in Vcs-Git handling X-Git-Tag: debian/0.30~214 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=dgit.git;a=commitdiff_plain;h=cf3ebba7e7b87357a7b79f49f873cb869ddb63bd Fix undef warning in Vcs-Git handling --- diff --git a/dgit b/dgit index 3a79bb60..68d8b42d 100755 --- a/dgit +++ b/dgit @@ -1503,8 +1503,8 @@ sub clone ($) { } fetch_from_archive() or no_such_package; my $vcsgiturl = $dsc->{'Vcs-Git'}; - $vcsgiturl =~ s/\s+-b\s+\S+//g; if (length $vcsgiturl) { + $vcsgiturl =~ s/\s+-b\s+\S+//g; runcmd @git, qw(remote add vcs-git), $vcsgiturl; } runcmd @git, qw(reset --hard), lrref();