From: Pascal Obry Date: Wed, 06 Aug 2008 16:28:09 GMT Subject: Re: something fishy with Git commit and log from file Message-ID: <4899D119.1080403@obry.net> In-Reply-To: <7v3alirw6b.fsf@gitster.siamese.dyndns.org> Junio C Hamano a écrit : > Pascal Obry 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