Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixes issue with having custom format for git-log

  • Loading branch information...
commit 5f2c6ee195929b0be80749243c18121c9864a3b3 1 parent 7ab37bc
marcinkuzminski authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 vcs/backends/git/changeset.py
View
5 vcs/backends/git/changeset.py
@@ -246,8 +246,9 @@ def get_file_history(self, path):
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"' % (
+ self.id, 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]
Please sign in to comment.
Something went wrong with that request. Please try again.