Skip to content

Commit

Permalink
Auto merge of #8672 - dtolnay:cachedir, r=alexcrichton
Browse files Browse the repository at this point in the history
End CACHEDIR.TAG with newline

Before:

```
/path/to$  cat target/CACHEDIR.TAG
Signature: 8a477f597d28d172789f06886806bc55
# This file is a cache directory tag created by cargo.
# For information about cache directory tags see https://bford.info/cachedir//path/to$  ▎
```

After:

```
/path/to$  cat target/CACHEDIR.TAG
Signature: 8a477f597d28d172789f06886806bc55
# This file is a cache directory tag created by cargo.
# For information about cache directory tags see https://bford.info/cachedir/
/path/to$  ▎
```
  • Loading branch information
bors committed Sep 1, 2020
2 parents 99eb3fd + 87f5ce3 commit 1857880
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/cargo/util/paths.rs
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,8 @@ fn exclude_from_backups(path: &Path) {
path.join("CACHEDIR.TAG"),
"Signature: 8a477f597d28d172789f06886806bc55
# This file is a cache directory tag created by cargo.
# For information about cache directory tags see https://bford.info/cachedir/",
# For information about cache directory tags see https://bford.info/cachedir/
",
);
// Similarly to exclude_from_time_machine() we ignore errors here as it's an optional feature.
}
Expand Down

0 comments on commit 1857880

Please sign in to comment.