diff --git a/knotmirror/xrpc/git_list_commits.go b/knotmirror/xrpc/git_list_commits.go --- a/knotmirror/xrpc/git_list_commits.go +++ b/knotmirror/xrpc/git_list_commits.go @@ -75,6 +75,7 @@ logs, err := func(repoPath, rev string) ([]byte, error) { out, err := exec.Command( "git", + "-C", repoPath, "rev-list", rev, fmt.Sprintf("--skip=%d", cursor), @@ -124,6 +125,7 @@ total, err := func(repoPath, rev string) (int, error) { out, err := exec.Command( "git", + "-C", repoPath, "rev-list", rev, "--count",