chiark / gitweb /
dgit: update-vcs-git: Use vcs_git_url_of_ctrl
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 10 Aug 2019 18:24:00 +0000 (19:24 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 10 Aug 2019 23:09:29 +0000 (00:09 +0100)
So we strip -b fragments as we ought.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
dgit

diff --git a/dgit b/dgit
index 5c046388a9e0c93aee69ea8eb63c252619c4fc58..541e8f60e2228fc9e75e816dade4b9673afdf107 100755 (executable)
--- a/dgit
+++ b/dgit
@@ -4972,7 +4972,8 @@ sub cmd_update_vcs_git () {
        get_archive_dsc();
        $ctrl = $dsc;
     }
-    my $url = getfield $ctrl, 'Vcs-Git';
+    my $url = vcs_git_url_of_ctrl $ctrl;
+    fail 'no Vcs-Git header in control file' unless length $url;
 
     my @cmd;
     my $orgurl = cfg 'remote.vcs-git.url', 'RETURN-UNDEF';