From 9766f963856762153f45ddd6a30847f8848b4ec7 Mon Sep 17 00:00:00 2001 From: Laurent Bachelier Date: Wed, 10 Oct 2012 21:02:03 +0200 Subject: [PATCH] Remove .git from guessed project name Signed-off-by: Eric S. Raymond --- irkerhook.py | 2 ++ 1 file changed, 2 insertions(+) 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") -- 2.26.2