You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by br...@apache.org on 2019/11/19 22:33:38 UTC
[allura] 02/02: [#8342] enable --follow option in git log to work
when at top-level directory too
This is an automated email from the ASF dual-hosted git repository.
brondsem pushed a commit to branch db/8342
in repository https://gitbox.apache.org/repos/asf/allura.git
commit d132212f3997fdfb0837fe1508dbec4c1f577ea8
Author: Dave Brondsema <da...@brondsema.net>
AuthorDate: Tue Nov 19 17:04:18 2019 -0500
[#8342] enable --follow option in git log to work when at top-level directory too
---
ForgeGit/forgegit/model/git_repo.py | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/ForgeGit/forgegit/model/git_repo.py b/ForgeGit/forgegit/model/git_repo.py
index 3b4d237..c7ed9f0 100644
--- a/ForgeGit/forgegit/model/git_repo.py
+++ b/ForgeGit/forgegit/model/git_repo.py
@@ -351,9 +351,7 @@ class GitImplementation(M.RepositoryImplementation):
path = path.strip('/').encode("utf-8") if path else None
if exclude is not None:
revs.extend(['^%s' % e for e in exclude])
- args = ['--name-status', revs, '--', path]
- if path:
- args = ['--follow'] + args
+ args = ['--follow', '--name-status', revs, '--', path or '.']
kwargs = {}
if limit:
kwargs['n'] = limit