Future-proof git add

https://travis-ci.org/rust-lang/rust-by-example/builds/43929603#L411
Merge pull request #321 from steveklabnik/master

Future-proof git add