Skip to content

Commit da325c3

Browse files
authored
Merge pull request #95 from aliceinwire/configparser
results: Parse git configuration with configparser with strict=False
2 parents 6834781 + 3977be4 commit da325c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kcidev/subcommands/results.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def get_folder_repository(git_folder):
9898
if os.path.exists(dot_git_folder):
9999
# Get remote origin url
100100
git_config_path = os.path.join(dot_git_folder, "config")
101-
git_config = configparser.ConfigParser()
101+
git_config = configparser.ConfigParser(strict=False)
102102
git_config.read(git_config_path)
103103
git_url = git_config.get('remote "origin"', "url")
104104
# A way of standardize git url for API call

0 commit comments

Comments
 (0)