Re: something fishy with Git commit and log from file
Show 15 quoted lines
> Pascal Obry <pascal@obry.net> writes:
>
>> So definitely a Git bug! Can be reproduced with:
>>
>> $ mkdir repo && cd repo
>> $ git init
>> $ mkdir dir
>> $ cd dir
>> $ echo file > file
>> $ echo log > log
>> $ git add file
>> $ git commit --file=log
>> fatal: could not read log file 'log': No such file or directory
>
> Try it without cding down to "dir".
Yes it works. It also works if I do:
$ echo log > ../log
instead of
$ echo log > log
Git is looking for the log file at the Git root.
Pascal.
--
--|------------------------------------------------------
--| Pascal Obry Team-Ada Member
--| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE
--|------------------------------------------------------
--| http://www.obry.net
--| "The best way to travel is by means of imagination"
--|
--| gpg --keyserver wwwkeys.pgp.net --recv-key C1082595