From: Laurent Bachelier Date: Wed, 10 Oct 2012 19:02:03 +0000 (+0200) Subject: Remove .git from guessed project name X-Git-Tag: 1.11~4 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=9766f963856762153f45ddd6a30847f8848b4ec7;p=irker.git Remove .git from guessed project name Signed-off-by: Eric S. Raymond --- diff --git a/irkerhook.py b/irkerhook.py index 755a451..33d3afd 100755 --- a/irkerhook.py +++ b/irkerhook.py @@ -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")