X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=dgit.git;a=blobdiff_plain;f=dgit;h=5f88625d300ef44bccda6c67b5995f4f9726a26e;hp=6e175ad2b1f08b03088cd57f63087bc62c20fdb3;hb=c683c8f8e7b9e917b68ed02bd584a505b1636734;hpb=2703ad402cb306b67cc0c96adfbd5335f0aff943 diff --git a/dgit b/dgit index 6e175ad2..5f88625d 100755 --- a/dgit +++ b/dgit @@ -655,6 +655,11 @@ sub access_cfg_ssh () { } } +sub access_runeinfo ($) { + my ($info) = @_; + return ": dgit ".access_basedistro()." $info ;"; +} + sub access_someuserhost ($) { my ($some) = @_; my $user = access_cfg("$some-user",'username'); @@ -829,7 +834,7 @@ sub sshpsql ($$$) { my ($userhost,$dbname) = ($`,$'); #'; my @rows; my @cmd = (access_cfg_ssh, $userhost, - ": dgit ssh-psql $runeinfo ;". + access_runeinfo("ssh-psql $runeinfo"). " export LANG=C;". " ".shellquote qw(psql -A), $dbname, qw(-c), $sql); printcmd(\*DEBUG,$debugprefix."|",@cmd) if $debug>0; @@ -977,7 +982,7 @@ sub check_for_git () { if ($how eq 'ssh-cmd') { my @cmd = (access_cfg_ssh, access_gituserhost(), - ": dgit git-check $package ;". + access_runeinfo("git-check $package"). " set -e; cd ".access_cfg('git-path').";". " if test -d $package.git; then echo 1; else echo 0; fi"); my $r= cmdoutput @cmd; @@ -997,7 +1002,7 @@ sub create_remote_git_repo () { if ($how eq 'ssh-cmd') { runcmd_ordryrun (access_cfg_ssh, access_gituserhost(), - " : dgit git-create $package ; ". + access_runeinfo("git-create $package"). "set -e; cd ".access_cfg('git-path').";". " cp -a _template $package.git"); } elsif ($how eq 'true') {