From 73bbd10296a565a85020215448b5a001f4a94652 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sat, 10 Aug 2019 19:24:00 +0100 Subject: [PATCH] dgit: update-vcs-git: Use vcs_git_url_of_ctrl So we strip -b fragments as we ought. Signed-off-by: Ian Jackson --- dgit | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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'; -- 2.30.2