Fix bug in git index for adding new folders.
Update index correctly on a commit.
Big bug in comparing sha values in git merge.
Fix bug in smartCheckout.
Merge pull request #1952 from dart-lang/index_bug

Fix bug in git index