Re: Problems using perl's Git.pm module
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Dec 2, 2010, 17:51 UTC
- Message-ID
- <7vipzcrrk9.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <20101202114003.GA26070@raven.wolf.lan>
Josef Wolf <jw@raven.inka.de> writes:
> jw@raven:~/testrepos> git st > # On branch master > nothing to commit (working directory clean)
I take it that you have "alias.st.cmd = status".
Observe what this gives you:
$ git st; echo $?
If you are running pre-1.7.0 version of git, I think "git status" was a synonym to "git commit --dry-run" and exited with non-zero status to signal the caller that there is nothing to commit, which is...
> jw@raven:~/testrepos> ./test.pl > # On branch master > nothing to commit (working directory clean) > status failed w/ code 1 at ./test.pl line 9
...consistent with what we see here.