Skip to content
Snippets Groups Projects
Commit 9766f963 authored by Laurent Bachelier's avatar Laurent Bachelier Committed by Eric S. Raymond
Browse files

Remove .git from guessed project name


Signed-off-by: default avatarEric S. Raymond <esr@thyrsus.com>
parent 990a26bc
No related branches found
No related tags found
No related merge requests found
......@@ -226,6 +226,8 @@ class GitExtractor(GenericExtractor):
while True:
if os.path.exists(os.path.join(here, keyfile)):
self.project = os.path.basename(here)
if self.project.endswith('.git'):
self.project = self.project[0:-4]
break
elif here == '/':
sys.stderr.write("irkerhook.py: no git repo below root!\n")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment