From 3a95eec63c64770f1f649c488ffd01f08c582f9e Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Mar 19 2014 14:21:19 +0000 Subject: Fix the fullname and fork properties, they were just the opposite of what they should be --- diff --git a/progit/model.py b/progit/model.py index be79bfc..d595034 100644 --- a/progit/model.py +++ b/progit/model.py @@ -97,7 +97,7 @@ class Project(BASE): @property def fork(self): ''' Return a boolean specifying if the project is a fork or not ''' - return self.parent_id is None + return self.parent_id is not None @property def fullname(self): @@ -105,7 +105,7 @@ class Project(BASE): project forked, otherwise it returns the project name. ''' str_name = self.name - if not self.parent_id: + if self.parent_id: str_name = "%s/%s" % (self.user, str_name) return str_name