diff options
author | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2014-11-25 15:03:11 +0000 |
---|---|---|
committer | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2014-11-25 15:04:33 +0000 |
commit | e0673a9afdec58cc24eef17bc8c017aa6b30f11b (patch) | |
tree | daf8a3875753733a4adfc10dd4878cd3baeb88c0 /dgit | |
parent | 6df8582aaca5b1e65b52ba9ff7ab8b4f365c7ef0 (diff) |
Strip `-b <branch>' from contents of Vcs-Git header, when setting up the vcs-git remote. Closes:#759374.
Diffstat (limited to 'dgit')
-rwxr-xr-x | dgit | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -1413,6 +1413,7 @@ sub clone ($) { } fetch_from_archive() or no_such_package; my $vcsgiturl = $dsc->{'Vcs-Git'}; + $vcsgiturl =~ s/\s+-b\s+\S+//g; if (length $vcsgiturl) { runcmd @git, qw(remote add vcs-git), $vcsgiturl; } |