Commits

Marcin Kuzminski committed 986430c

fixed issue with getting README files from git repositories

Comments (0)

Files changed (3)

docs/changelog.rst

 - fixed #434: Error when accessing files or changesets of a git repository 
   with submodules
 - fixed issue with empty APIKEYS for users after registration ref. #438
+- fixed issue with getting README files from git repositories
 
 1.3.4 (**2012-03-28**)
 ----------------------

rhodecode/controllers/summary.py

             readme_file = None
             log.debug('Fetching readme file')
             try:
-                cs = repo.get_changeset('tip')
+                cs = repo.get_changeset() # fetches TIP
                 renderer = MarkupRenderer()
                 for f in README_FILES:
                     try:

rhodecode/model/db.py

     # SCM PROPERTIES
     #==========================================================================
 
-    def get_changeset(self, rev):
+    def get_changeset(self, rev=None):
         return get_changeset_safe(self.scm_instance, rev)
 
     @property