X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=dgit.git;a=blobdiff_plain;f=dgit;fp=dgit;h=541e8f60e2228fc9e75e816dade4b9673afdf107;hp=5c046388a9e0c93aee69ea8eb63c252619c4fc58;hb=73bbd10296a565a85020215448b5a001f4a94652;hpb=7341dfbf9bf8cf5215b4dfb0ef2236f9fb5aa9a1 diff --git a/dgit b/dgit index 5c046388..541e8f60 100755 --- 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';