Re: git commit return code
- From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
- Date
- Aug 9, 2010, 16:13 UTC
- Message-ID
- <AANLkTi=HKBjT6=_RUNwPWJO-KsqgkjWUsxT_ontdvj6a@mail.gmail.com>
- In-Reply-To
- <4C601F9B.6040102@puffy.pl>
On Mon, Aug 9, 2010 at 15:32, Tomasz Pajor <nikon@puffy.pl> wrote:
Show 7 quoted lines
> Is this proper behaviour: > > root# su <username> -c "git commit --quiet -a -m \"templates generation\";" > # On branch master > nothing to commit (working directory clean) > root# echo $? > 1
Yes, you asked it to create a commit, but there's nothing to commit. Hence the failure to commit.