From edb31ec90f2a366e5d24795b3458c26cfe84f253 Mon Sep 17 00:00:00 2001 From: Elmar Fasel Date: Thu, 1 May 2025 00:08:48 +0200 Subject: [PATCH] =?UTF-8?q?Execute=20git=20ls-remote=20in=20current=20repo?= =?UTF-8?q?=E2=80=99s=20directory=20(#515)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- git/git.go | 1 + 1 file changed, 1 insertion(+) diff --git a/git/git.go b/git/git.go index 03d6b4d..e198218 100644 --- a/git/git.go +++ b/git/git.go @@ -55,6 +55,7 @@ func printDebugCmd(cmd *exec.Cmd, repo scm.Repo) error { func (g GitClient) HasRemoteHeads(repo scm.Repo) (bool, error) { cmd := exec.Command("git", "ls-remote", "--heads", "--quiet", "--exit-code") + cmd.Dir = repo.HostPath err := cmd.Run() if err == nil {