mirror of
https://github.com/gabrie30/ghorg.git
synced 2025-08-05 22:07:12 +02:00
Execute git ls-remote in current repo’s directory (#515)
This commit is contained in:
parent
a1395a2a6f
commit
edb31ec90f
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user