X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=dgit.git;a=blobdiff_plain;f=dgit;h=1f1c425d1f95eaded35208faa49946c9b080b0de;hp=3a79bb60b1a5bd7b884bbc91330908efa36a9a43;hb=9ff6957e842708e9641ad00510f336b347bff302;hpb=38b8cc309c7960a312f375b60dad41ef17ba2739 diff --git a/dgit b/dgit index 3a79bb60..1f1c425d 100755 --- a/dgit +++ b/dgit @@ -18,6 +18,7 @@ # along with this program. If not, see . use strict; +$SIG{__WARN__} = sub { die $_[0]; }; use IO::Handle; use Data::Dumper; @@ -1503,8 +1504,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();