Please verify that this actually adds 'foo' to the index, and doesn't add any files under .git/.