From acbed7a1233e14056f9f7ee4184225467e1b07a2 Mon Sep 17 00:00:00 2001 From: Sebastien Awwad Date: Fri, 9 Oct 2015 16:31:43 -0400 Subject: [PATCH] Fix config parsing to strip bad whitespace. Fixes #7 and #8. Fix config parsing to strip bad whitespace. Fixes #7 and #8. --- initialize.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/initialize.py b/initialize.py index 4c6241b..04cd656 100644 --- a/initialize.py +++ b/initialize.py @@ -69,8 +69,9 @@ ignore_git_errors = False for line in config_file.readlines(): + line = line.strip() # <~> fixes issues #7 and #8. #7: initialize.py may clone into dirnames containing \r) by stripping whitespace that may include carriage returns from windows machines editing the config files. # Ignore comments and blank lines - if line.startswith("#") or line.strip() == '': + if line.startswith("#") or line == '': # <~> removing .strip() in 2nd check - now unnecessary, as of fix in line above continue # If we end up here, the line contains a Git URL (+options?) for us to clone