summaryrefslogtreecommitdiff
path: root/dgit
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2013-08-16 15:01:12 +0100
committerIan Jackson <ijackson@chiark.greenend.org.uk>2013-08-16 15:01:12 +0100
commit2b11580e5274e1919fd21da4d0fa2dd19b2c0fea (patch)
tree8ae1436558fba87ed4310d35234a7837fd08743a /dgit
parent39c6c123ab730d42ec7c9ed01c30e0175c7691e7 (diff)
dry run fetch really does not update ref
Diffstat (limited to 'dgit')
-rwxr-xr-xdgit3
1 files changed, 2 insertions, 1 deletions
diff --git a/dgit b/dgit
index 0fb9289..d160e18 100755
--- a/dgit
+++ b/dgit
@@ -346,7 +346,8 @@ sub is_fast_fwd ($$) {
}
sub git_fetch_us () {
- runcmd_ordryrun @git, qw(fetch),$remotename,fetchspec();
+ die "cannot dry run with fetch" if $dryrun;
+ runcmd @git, qw(fetch),$remotename,fetchspec();
}
sub fetch_from_archive () {