Execute git ls-remote in current repo’s directory (#515)

This commit is contained in:
Elmar Fasel 2025-05-01 00:08:48 +02:00 committed by GitHub
parent a1395a2a6f
commit edb31ec90f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 {