mirror of
https://github.com/gabrie30/ghorg.git
synced 2025-08-06 14:27:28 +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) {
|
func (g GitClient) HasRemoteHeads(repo scm.Repo) (bool, error) {
|
||||||
cmd := exec.Command("git", "ls-remote", "--heads", "--quiet", "--exit-code")
|
cmd := exec.Command("git", "ls-remote", "--heads", "--quiet", "--exit-code")
|
||||||
|
cmd.Dir = repo.HostPath
|
||||||
|
|
||||||
err := cmd.Run()
|
err := cmd.Run()
|
||||||
if err == nil {
|
if err == nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user