Skip to content

Commit

Permalink
Merge pull request #21 from dtolnay/wip
Browse files Browse the repository at this point in the history
Write gitignore file in the wip directory
  • Loading branch information
dtolnay authored Jul 14, 2019
2 parents b4f0b4e + 4329d6b commit 6743869
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/target
**/*.rs.bk
Cargo.lock
wip
2 changes: 2 additions & 0 deletions src/run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,8 @@ impl Test {
Update::Wip => {
let wip_dir = Path::new("wip");
fs::create_dir_all(wip_dir)?;
let gitignore_path = wip_dir.join(".gitignore");
fs::write(gitignore_path, "*\n")?;
let stderr_name = stderr_path
.file_name()
.unwrap_or_else(|| OsStr::new("test.stderr"));
Expand Down

0 comments on commit 6743869

Please sign in to comment.