Skip to content
Snippets Groups Projects
Unverified Commit f0d206cd authored by Jonas Haag's avatar Jonas Haag Committed by GitHub
Browse files

Fix #221

parent 136a93af
No related branches found
No related tags found
No related merge requests found
......@@ -24,7 +24,10 @@ class FancyRepo(dulwich.repo.Repo):
2. /x/y/ -> /x/y
3. /x/y -> y
"""
return self.path.replace(".git", "").rstrip(os.sep).split(os.sep)[-1]
path = self.rstrip(os.sep).split(os.sep)[-1]
if path.endswith('.git'):
path = path[-4:]
return path
def get_last_updated_at(self):
"""Get datetime of last commit to this repository."""
......
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