diff options
author | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2019-08-10 19:18:03 +0100 |
---|---|---|
committer | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2019-08-11 00:09:29 +0100 |
commit | 7593c9b857a3d4517d8772ff0e31faf5cc3b4fb4 (patch) | |
tree | 7021ccb9ac691462aae730336407314d9afd0677 /dgit | |
parent | d81b1debc1dc1ff0d123e3e4bc244b26592d1a52 (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>
Diffstat (limited to 'dgit')
-rwxr-xr-x | dgit | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |