From: Ian Jackson Date: Sat, 18 Jan 2014 22:49:42 +0000 (+0000) Subject: New git-check and git-create methods "true" which are no-ops. X-Git-Tag: debian/0.22~103 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=dgit.git;a=commitdiff_plain;h=deb9a5e8b7be737f0ba41aebfbd3602b539ba947;ds=inline New git-check and git-create methods "true" which are no-ops. --- diff --git a/debian/changelog b/debian/changelog index dc147abd..e98fd2fb 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,5 +1,6 @@ dgit (0.22~experimental1) experimental; urgency=low + * New git-check and git-create methods "true" which are no-ops. * dgit-push-responder: WIP -- diff --git a/dgit b/dgit index 0182b6f9..3c56a3ae 100755 --- a/dgit +++ b/dgit @@ -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'"; }