Re: git commit -a errors on FreeBSD

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Yes, the file was called test.txt and add a line to that file. Then I tried to git commit -a without adding the file first.

Yes it is a version of ash not sure which.
I changed to bash 3.2.17(2)-release and got:
/usr/local/bin/git-commit: line 577: /usr/local/test/.git/hooks/ commit-msg: Permission denied
Then ran:
    chmod +x /usr/local/cpanel/.git/hooks/pre-commit
    chmod +x /usr/local/cpanel/.git/hooks/commit-msg
    chmod +x /usr/local/cpanel/.git/hooks/post-commit

Then it worked as expected. I'm not sure why those hooks weren't made executable after git init..

Robert


On Sep 13, 2007, at 2:35 PM, Junio C Hamano wrote:

Robert Boone <robert@xxxxxxxxxx> writes:

On FreeBSD 5.5 if you use git commit -a you get this error:

[root@robert /usr/local/test (testing)]# git commit -a
error: pathspec '-a' did not match any file(s) known to git.
Did you forget to 'git add'?

If I add the file and commit it works as expected.

So you had a file '-a', you haven't added it, and "git commit -a"
said "I do not know that file --- did you forget to 'git add'?",
and you added the file '-a' and then "git commit -a" committed?

I do not think that is what you are reporting.  Your file was
not '-a' but something else, and you did "git add that-file" and
tried commit again.  What did you exactly say in that second
attempt?

"git commit" or "git commit -a" or "git commit that-file"?

I am smelling a /bin/sh breakage that did not shift '-a' from
the $@ list when it was asked to.  What shell does FBSD 5.5 ship
with?  If it is /bin/ash, do you have other shells on the box to
try so that we can isolate the problem (say, ksh or pdksh)?



-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux