Re: something fishy with Git commit and log from file
- From
Pascal Obry <pascal@obry.net>
- Date
- Aug 6, 2008, 11:01 UTC
- Message-ID
- <4899848C.6030800@obry.net>
- In-Reply-To
- <20080806104432.GG7121@bit.office.eurotux.com>
Luciano,
> If the function doesn't exist, try: > (gdb) p getwd(malloc(2048))
I got:
(gdb) p (char *)getwd(malloc(2048)) $3 = 0x903680 "/home/obry/dev/repositories/git/AWS"
And this is not the directory I was in. It is the Git root. I was under /home/obry/dev/repositories/git/AWS/regtests when running the command.
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 directoryPascal.
-- --|------------------------------------------------------ --| 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