Skip to content
This repository was archived by the owner on Feb 21, 2024. It is now read-only.

Commit 8e63486

Browse files
run git directly
1 parent bc3c0ec commit 8e63486

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

internal/git/git.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -333,11 +333,7 @@ func (g *Git) CommitAndPush(openAPIDocVersion, speakeasyVersion, doc string, act
333333
}
334334

335335
func (g *Git) Add(arg string) error {
336-
baseDir := environment.GetBaseDir()
337-
338-
cmdPath := filepath.Join(baseDir, "bin", "git")
339-
340-
cmd := exec.Command(cmdPath, "add", arg)
336+
cmd := exec.Command("git", "add", arg)
341337
cmd.Dir = filepath.Join(environment.GetWorkspace(), "repo", environment.GetWorkingDirectory())
342338
cmd.Env = os.Environ()
343339
output, err := cmd.CombinedOutput()

0 commit comments

Comments
 (0)