Re: [PATCH 4/6] require_clean_work_tree: ensure that the index was read
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Aug 30, 2016, 16:23 UTC
- Message-ID
- <xmqq1t166xaz.fsf@gitster.mtv.corp.google.com>
- In-Reply-To
- <alpine.DEB.2.20.1608301645170.129229@virtualbox>
Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
Show 5 quoted lines
>> > Scatch that. That would not work in a freshly created repository >> > before doing any "git add". An empty index is a normal state,... > > Alas, that does not work, either. If no .git/index exists, read_index() > will not set the "initialized" flag.
Exactly