Return sha with index commit.