diff options
author | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2014-01-18 22:49:42 +0000 |
---|---|---|
committer | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2014-03-05 18:29:02 +0000 |
commit | deb9a5e8b7be737f0ba41aebfbd3602b539ba947 (patch) | |
tree | bab57fe7594165ecb009bc07054eda7a7f6d5b8e /dgit | |
parent | 5fb470433413f6594afd9e4d5e2415a1454def14 (diff) |
New git-check and git-create methods "true" which are no-ops.
Diffstat (limited to 'dgit')
-rwxr-xr-x | dgit | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -837,6 +837,8 @@ sub check_for_git () { my $r= cmdoutput @cmd; failedcmd @cmd unless $r =~ m/^[01]$/; return $r+0; + } elsif ($how eq 'true') { + return 1; } else { badcfg "unknown git-check \`$how'"; } @@ -849,6 +851,8 @@ sub create_remote_git_repo () { (access_cfg_ssh, access_gituserhost(), "set -e; cd ".access_cfg('git-path').";". " cp -a _template $package.git"); + } elsif ($how eq 'true') { + # nothing to do } else { badcfg "unknown git-create \`$how'"; } |