From 16ad9473ed48d880273bab28b9f706656ee16df7 Mon Sep 17 00:00:00 2001 From: Seongmin Lee Date: Mon, 1 Jun 2026 22:24:31 +0900 Subject: [PATCH] knotmirror/xrpc: pass repoPath on `git.listCommits` Signed-off-by: Seongmin Lee --- knotmirror/xrpc/git_list_commits.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/knotmirror/xrpc/git_list_commits.go b/knotmirror/xrpc/git_list_commits.go index 7a36566d..bcbce08c 100644 --- a/knotmirror/xrpc/git_list_commits.go +++ b/knotmirror/xrpc/git_list_commits.go @@ -75,6 +75,7 @@ func (x *Xrpc) listCommits(ctx context.Context, repo syntax.DID, ref string, lim 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 @@ func (x *Xrpc) listCommits(ctx context.Context, repo syntax.DID, ref string, lim total, err := func(repoPath, rev string) (int, error) { out, err := exec.Command( "git", + "-C", repoPath, "rev-list", rev, "--count", -- 2.51.2