From 51f6a62b085305f7c6c6d217312402c8d1cad9ba Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Mar 31 2014 09:50:52 +0000 Subject: Fix project's path and fullname now that we have a user table Signed-off-by: Pierre-Yves Chibon --- diff --git a/progit/model.py b/progit/model.py index 92bc880..45aa29a 100644 --- a/progit/model.py +++ b/progit/model.py @@ -160,7 +160,7 @@ class Project(BASE): def path(self): ''' Return the name of the git repo on the filesystem. ''' if self.parent_id: - path = '%s/%s.git' % (self.user, self.name) + path = '%s/%s.git' % (self.user.user, self.name) else: path = '%s.git' % (self.name) return path @@ -177,7 +177,7 @@ class Project(BASE): ''' str_name = self.name if self.parent_id: - str_name = "%s/%s" % (self.user, str_name) + str_name = "%s/%s" % (self.user.user, str_name) return str_name