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

Commit

Permalink
run git directly
Browse files Browse the repository at this point in the history
  • Loading branch information
chase-crumbaugh committed Feb 15, 2024
1 parent bc3c0ec commit 8e63486
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions internal/git/git.go
Original file line number Diff line number Diff line change
Expand Up @@ -333,11 +333,7 @@ func (g *Git) CommitAndPush(openAPIDocVersion, speakeasyVersion, doc string, act
}

func (g *Git) Add(arg string) error {
baseDir := environment.GetBaseDir()

cmdPath := filepath.Join(baseDir, "bin", "git")

cmd := exec.Command(cmdPath, "add", arg)
cmd := exec.Command("git", "add", arg)
cmd.Dir = filepath.Join(environment.GetWorkspace(), "repo", environment.GetWorkingDirectory())
cmd.Env = os.Environ()
output, err := cmd.CombinedOutput()
Expand Down

0 comments on commit 8e63486

Please sign in to comment.