summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2019-08-10 19:18:03 +0100
committerIan Jackson <ijackson@chiark.greenend.org.uk>2019-08-11 00:09:29 +0100
commit7593c9b857a3d4517d8772ff0e31faf5cc3b4fb4 (patch)
tree7021ccb9ac691462aae730336407314d9afd0677
parentd81b1debc1dc1ff0d123e3e4bc244b26592d1a52 (diff)
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 <ijackson@chiark.greenend.org.uk>
-rwxr-xr-xdgit2
1 files changed, 1 insertions, 1 deletions
diff --git a/dgit b/dgit
index 687ef64..d57b643 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;