Commits

Marcin Kuzminski committed 092080c

Git fixes
- removed remotes from git-branches
- fixed parsing for git node history
- docs updates

Comments (0)

Files changed (3)

docs/changelog.rst

 =========
 
 
-1.3.1 (**2012-XX-XX**)
+1.3.2 (**2012-XX-XX**)
 ----------------------
 
 :status: in-progress
 +++++
 
 
+1.3.1 (**2012-02-27**)
+----------------------
+
+news
+++++
+
+
+fixes
++++++
+
+- redirection loop occurs when remember-me wasn't checked during login
+- fixes issues with git blob history generation 
+- don't fetch branch for git in file history dropdown. Causes unneeded slowness
+
 1.3.0 (**2012-02-26**)
 ----------------------
 

rhodecode/lib/vcs/backends/git/changeset.py

         which is generally not good. Should be replaced with algorithm
         iterating commits.
         """
-        cmd = 'log --name-status -p %s -- "%s" | grep "^commit"' \
-            % (self.id, path)
+        cmd = 'log --pretty="format: %%H" --name-status -p %s -- "%s"' % (
+                  '', path
+               )
         so, se = self.repository.run_git_command(cmd)
         ids = re.findall(r'\w{40}', so)
         return [self.repository.get_changeset(id) for id in ids]

rhodecode/lib/vcs/backends/git/repository.py

         sortkey = lambda ctx: ctx[0]
         _branches = [('/'.join(ref.split('/')[2:]), head)
             for ref, head in refs.items()
-            if ref.startswith('refs/heads/') or
-            ref.startswith('refs/remotes/') and not ref.endswith('/HEAD')]
+            if ref.startswith('refs/heads/') and not ref.endswith('/HEAD')]
         return OrderedDict(sorted(_branches, key=sortkey, reverse=False))
 
     def _get_tags(self):