Ensure correct path separators are used for VCS ignore dirs

This commit is contained in:
Matt Green 2017-04-27 15:39:12 -04:00
parent f9a3cade26
commit e6de016cb9
1 changed files with 3 additions and 3 deletions

View File

@ -141,9 +141,9 @@ pub fn get_args() -> Args {
let default_ignores = vec![format!("*{}.DS_Store", MAIN_SEPARATOR),
String::from("*.pyc"),
String::from("*.swp"),
String::from("*/.git/*"),
String::from("*/.hg/*"),
String::from("*/.svn/*")];
format!("*{}.git{}*", MAIN_SEPARATOR, MAIN_SEPARATOR),
format!("*{}.hg{}*", MAIN_SEPARATOR, MAIN_SEPARATOR),
format!("*{}.svn{}*", MAIN_SEPARATOR, MAIN_SEPARATOR)];
if args.occurrences_of("no-default-ignore") == 0 {