git commit -a reports untracked files after a clone

From: Philipp Metzler <hidden>
Date: 2016-06-15 22:51:14

Hi,

I have a problem with git on OS X 10.6.7

5102c6173c5a1c683dfdd8ccd07528adddd51745 is the first bad commit

SHA:	5102c6173c5a1c683dfdd8ccd07528adddd51745
Author:	Joshua Jensen [off-list ref]
Date:	Sun Oct 03 2010 11:56:43 GMT+0200 (CEST)

This is how you can reproduce the problem:
1. clone a repo
2. run the command "git commit -a"

I would expect: nothing to commit (working directory clean)
Instead it reports: nothing added to commit but untracked files present (use "git add" to track)

Starting with commit 

SHA:	8c8674fc954d8c4bc46f303a141f510ecf264fcd
Author:	Jeff King [off-list ref]
Date:	Fri Mar 25 2011 19:13:31 GMT+0100 (CET)

the following behaviour can be observed when these three commands are run in this order:

1. git commit -a 
   nothing added to commit but untracked files present (use "git add" to track)
2. git status
   nothing to commit (working directory clean)
3. git commit -a
   nothing to commit (working directory clean)

So "git status" makes the untracked files "go away".

Cheers,

Philipp

_______________________________________________________________

DI Philipp Metzler
Goli.at GesbR.
Dorf Rieden 7/11
A-6900 Bregenz
EU - Austria

E-Mail: phil@goli.at
Skype: googol
Tel: +43 / 676 / 72 94 176
ICQ: 13950954

o www.philippmetzler.com - Softwareentwicklung und Websites mit Django und Typo3.
o www.goli.at - Ihr Speicherplatz im Netz. Messen Sie uns an unseren Daten.
o www.clickshopping.at - Wir bringen Ihre Produkte auf den Punkt.
o www.greencar.at - Elektroautos und mehr ...
_______________________________________________________________
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help