threads / discuss / 24595

Re: error commiting in Git

Subject: Re: error commiting in Git

## tl;dr

5 messages between Jul 31, 2010 and Jul 31, 2010.

replies: 4people: 2as markdown or json

Daniel França· Jul 31, 2010, 22:25 UTC · lore

Hi, I recently migrate to Mac OS from Linux. and now when I try to commito some file of my git project I get the following error: find: illegal option -- n find: illegal option -- a find: illegal option -- m find: illegal option -- e it seems to me that git calls find in a way that mac os doesn't support. any idea how can I solve that?

Best Regards, Daniel França

Jonathan Nieder· Jul 31, 2010, 22:33 UTC · re: Daniel França · lore
Hi Daniel,
Daniel França wrote:
Show 6 quoted lines
> now when I try to commito some file of my git project I get the
> following error:
> find: illegal option -- n
> find: illegal option -- a
> find: illegal option -- m
> find: illegal option -- e

Could you give the git version you use, the command you ran, and the exact response? “git commit” is not a shell script and does not run find, so it is hard to guess what is going on from the extract you gave.

Jonathan
Daniel França· Jul 31, 2010, 22:38 UTC · re: Jonathan Nieder · lore

Thanks for the fast reply git version 1.7.2

git commit -a -m 'Teste'

Even when I try to commit using SmartGit or GitX, the same error of commandline happen

2010/7/31 Jonathan Nieder <jrnieder@gmail.com>:
Show 18 quoted lines
> Hi Daniel,
>
> Daniel França wrote:
>
>> now when I try to commito some file of my git project I get the
>> following error:
>> find: illegal option -- n
>> find: illegal option -- a
>> find: illegal option -- m
>> find: illegal option -- e
>
> Could you give the git version you use, the command you ran, and the
> exact response?  “git commit” is not a shell script and does not run
> find, so it is hard to guess what is going on from the extract you
> gave.
>
> Jonathan
>
Jonathan Nieder· Jul 31, 2010, 22:43 UTC · re: Daniel França · lore
Daniel França wrote:
> 2010/7/31 Daniel França <daniel.franca@gmail.com>:
>> git commit -a -m 'Teste'
[...]
Show 6 quoted lines
> the output:
> find: illegal option -- n
> find: illegal option -- a
> find: illegal option -- m
> find: illegal option -- e
> find: *.pyc: No such file or directory

Ah, you have a pre- or post-commit hook. Take a look at .git/hooks and you may find something interesting. :)

Good luck, Jonathan

Daniel França· Jul 31, 2010, 22:50 UTC · re: Jonathan Nieder · lore

thanks, I'll look that, I've the stupid habit of click reply instead of reply to all :P

2010/7/31 Jonathan Nieder <jrnieder@gmail.com>:
Show 18 quoted lines
> Daniel França wrote:
>> 2010/7/31 Daniel França <daniel.franca@gmail.com>:
>
>>> git commit -a -m 'Teste'
> [...]
>> the output:
>> find: illegal option -- n
>> find: illegal option -- a
>> find: illegal option -- m
>> find: illegal option -- e
>> find: *.pyc: No such file or directory
>
> Ah, you have a pre- or post-commit hook.  Take a look at
> .git/hooks and you may find something interesting. :)
>
> Good luck,
> Jonathan
>

← back to recent threads