Skip to content

Commit

Permalink
Merge pull request #453 from RReverser/gitignore-pkg-by-default
Browse files Browse the repository at this point in the history
Generate self-.gitignore as part of pkg folder
  • Loading branch information
ashleygwilliams authored Dec 27, 2018
2 parents 8ed6e3d + d788b80 commit 0fdfacc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/command/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ pub fn create_pkg_dir(out_dir: &Path, step: &Step) -> Result<(), failure::Error>
let msg = format!("{}Creating a pkg directory...", emoji::FOLDER);
PBAR.step(step, &msg);
fs::create_dir_all(&out_dir)?;
fs::write(out_dir.join(".gitignore"), "*")?;
Ok(())
}

Expand Down

0 comments on commit 0fdfacc

Please sign in to comment.