mirror of
https://github.com/outbackdingo/ghorg.git
synced 2026-01-27 10:19:03 +00:00
Execute git ls-remote in current repo’s directory (#515)
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user