From: Nguyễn Thái Ngọc Duy Date: Mon, 24 Oct 2016 10:42:22 +0000 (+0700) Subject: commit: don't be fooled by ita entries when creating initial commit X-Git-Tag: v2.11.0-rc0~16^2 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/2c49f7ffb3063fdccccf2a038ab2eee66e7395e4?hp=2c49f7ffb3063fdccccf2a038ab2eee66e7395e4 commit: don't be fooled by ita entries when creating initial commit ita entries are dropped at tree generation phase. If the entire index consists of just ita entries, the result would be a a commit with no entries, which should be caught unless --allow-empty is specified. The test "!!active_nr" is not sufficient to catch this. Signed-off-by: Nguyễn Thái Ngọc Duy Signed-off-by: Junio C Hamano ---