chiark / gitweb /
dgit: update-vcs-git: Use vcs_git_url_of_ctrl
[dgit.git] / 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';