Auto merge of #7512 - Xyene:patch-1, r=alexcrichton
Auto merge of #7512 - Xyene:patch-1, r=alexcrichton

Fix typo in git index initialization error path

This PR proposes a fix for a small typo I ran into while using `cargo`.

tsurai/cargo,eminence/cargo,rust-lang/cargo,rust-lang/cargo,eminence/cargo,eminence/cargo,rustyhorde/cargo,vojtechkral/cargo,rust-lang/cargo,tshepang/cargo,nipunn1313/cargo,vojtechkral/cargo,tsurai/cargo,vojtechkral/cargo,rustyhorde/cargo,tshepang/cargo,nipunn1313/cargo,rustyhorde/cargo,eminence/cargo,tshepang/cargo,rustyhorde/cargo,tshepang/cargo,rust-lang/cargo,nipunn1313/cargo,tsurai/cargo,nipunn1313/cargo,tsurai/cargo,tsurai/cargo,vojtechkral/cargo