We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e77e71d commit 0ab6ad6Copy full SHA for 0ab6ad6
1 file changed
codespeed/models.py
@@ -54,7 +54,12 @@ def repo_name(self):
54
error = 'Not supported for %s project' % self.get_repo_type_display()
55
raise AttributeError(error)
56
57
- return os.path.splitext(self.repo_path.split(os.sep)[-1])[0]
+ name = self.repo_path
58
+ if name.endswith('/'):
59
+ name = name[:-1]
60
+ name = name.split('/')[-1]
61
+ # strip extension
62
+ return name.rsplit('.', 1)[0]
63
64
@property
65
def working_copy(self):
0 commit comments