Commits

Lukasz Balcerzak committed 50b7537

Fixed git clone url at quickstart page

  • Participants
  • Parent commits 672ac59

Comments (0)

Files changed (1)

projector/models.py

         })
 
     def get_clone_url(self):
-        if not self.repository:
+        if self.repository is None:
             return None
         if self.repository.alias == 'hg':
             return self.get_absolute_url()
         if self.repository.alias == 'hg':
             return 'hg clone %s' % url
         elif self.repository.alias == 'git':
-            return 'git clone %s' % url
+            return 'git clone %s' % url.rstrip('/')
         return None
 
     def is_pending(self):