chiark
/
gitweb
/
~ianmdlvl
/
dgit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d81b1de
)
dgit: update-vcs-git: Do not crash if url is unchanged
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sat, 10 Aug 2019 18:18:03 +0000
(19:18 +0100)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sat, 10 Aug 2019 23:09:29 +0000
(
00:09
+0100)
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>
dgit
patch
|
blob
|
history
diff --git
a/dgit
b/dgit
index 687ef646a4d4deb4569c039890cb54e22ea91bf7..d57b64351e1883f78772e9ae075be814f0bee8c4 100755
(executable)
--- 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;