[Dev] [Maintenance] Cron <keys at repo> cronic bash -c 'git add -Av && git commit -m "update from cron"'
Luke Shumaker
lukeshu at sbcglobal.net
Sat Jul 26 03:13:58 GMT 2014
At Fri, 25 Jul 2014 21:10:26 -0300,
Nicolás Reynolds wrote:
>
> [1 <text/plain (quoted-printable)>]
> "(Cron Daemon)" <keys at parabolagnulinux.org> writes:
>
> > Cronic detected failure or error output for the command:
> > bash -c git add -Av && git commit -m "update from cron"
> >
> > RESULT CODE: 1
> >
> > ERROR OUTPUT:
> >
> > STANDARD OUTPUT:
> > On branch master
> > nothing to commit, working directory clean
>
> why does git return 1 when there's nothing to do!
I've now made it check `git status` first to check if there is
anything to do.
--
Happy hacking,
~ Luke Shumaker
More information about the Dev
mailing list