Canonicalize cwd; fixes gitignore patterns not matching on Windows

This commit is contained in:
Matt Green 2016-10-12 09:22:45 -04:00
parent 7d4e9ea6b0
commit d7a62ed30a
1 changed files with 2 additions and 1 deletions

View File

@ -96,7 +96,8 @@ fn main() {
let verbose = args.is_present("verbose");
let cwd = env::current_dir().unwrap();
let uncanonicalized_cwd = env::current_dir().expect("unable to get cwd");
let cwd = uncanonicalized_cwd.canonicalize().expect("unable to canonicalize cwd");
let mut gitignore_file = None;
let gitignore_path = cwd.join(".gitignore");