From 7593c9b857a3d4517d8772ff0e31faf5cc3b4fb4 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sat, 10 Aug 2019 19:18:03 +0100 Subject: [PATCH] dgit: update-vcs-git: Do not crash if url is unchanged Previously, we would pass an empty command array to runcmd, causing a mysterious-looking failure. Signed-off-by: Ian Jackson --- dgit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dgit b/dgit index 687ef646..d57b6435 100755 --- a/dgit +++ b/dgit @@ -4985,7 +4985,7 @@ sub cmd_update_vcs_git () { print STDERR f_ "changing vcs-git url to: %s\n", $url; @cmd = (@git, qw(remote set-url vcs-git), $url); } - runcmd_ordryrun_local @cmd; + runcmd_ordryrun_local @cmd if @cmd; if ($dofetch) { print f_ "fetching (%s)\n", "@ARGV"; runcmd_ordryrun_local @git, qw(fetch vcs-git), @ARGV; -- 2.30.2