Auto merge of #4944 - mathstuf:better-gitignore-template, r=alexcrichton
authorbors <bors@rust-lang.org>
Tue, 16 Jan 2018 06:11:46 +0000 (06:11 +0000)
committerbors <bors@rust-lang.org>
Tue, 16 Jan 2018 06:11:46 +0000 (06:11 +0000)
cargo_new: drop the trailing slash for target exclusion in Git

When `target` is a symlink (e.g., to keep build outputs on a separate
partition), Git will not match the `/target/` ignore to the symlink
since it is not a directory. Drop the trailing slash to support ignoring
`target` as a symlink.


Trivial merge