pgit.sh: Add support for environment variable PGIT_KEEP_GOING

Sadly, a commit returns 1 if there's nothing to commit, which makes pgit.sh
error out of the project loop, which is run with set -e. This option disables
-e.

OTOH, pgit.sh commit could check for a diff and only run git commit if there is
a diff.

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2017-06-12 08:59:08 +00:00
commit cf4308e2c5

View file

@ -53,7 +53,7 @@ run()
config config
cd $pdir cd $pdir
set -e if [ "$PGIT_KEEP_GOING" != y ]; then set -e; fi
for d in $pdirs; do for d in $pdirs; do
run_git -C $d $cmd "$@" run_git -C $d $cmd "$@"
done done