Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=pacman-tools.git;a=commitdiff;h=cbe52295f2196849815b19950e1811e9a447417f
commit cbe52295f2196849815b19950e1811e9a447417f Author: James Buren <r...@frugalware.org> Date: Thu May 3 05:27:51 2012 -0500 repoman: set remote.origin.receivepack automatically in git repos This is applied only if it is not already set in the git repo and if the sudo variable is defined for the repo as well. It is called only during a repoman update. diff --git a/repoman b/repoman index 499bc1d..c9ddcb9 100755 --- a/repoman +++ b/repoman @@ -832,6 +832,13 @@ update() break fi done + git config --file $fst_root/$i/.git/config --get remote.origin.receivepack >/dev/null 2>&1 + if [ $? != 0 ]; then + sudouser=$(eval "echo \$${i}_sudo") + if [ -n $sudouser ]; then + git config --file $fst_root/$i/.git/config remote.origin.receivepack "sudo -u $sudouser git-receive-pack" + fi + fi done } _______________________________________________ Frugalware-git mailing list Frugalware-git@frugalware.org http://frugalware.org/mailman/listinfo/frugalware-git