Re: something fishy with Git commit and log from file

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

 



Junio C Hamano a écrit :
Pascal Obry <pascal@xxxxxxxx> 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
--
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