Skip to content

Commit

Permalink
f gitserver
Browse files Browse the repository at this point in the history
  • Loading branch information
jroimartin committed Nov 28, 2023
1 parent e868ce0 commit 1869532
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion internal/gitserver/gitserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,12 @@ func (srv *Server) AddPath(path string) (string, error) {
return "", fmt.Errorf("git add: %w", err)
}

cmd = exec.Command("git", "commit", "-m", "[auto] lava")
cmd = exec.Command(
"git",
"-c", "user.name=lava",
"-c", "[email protected]",
"commit", "-m", "[auto] lava",
)
cmd.Dir = dstPath
if err = cmd.Run(); err != nil {
return "", fmt.Errorf("git commit: %w", err)
Expand Down

0 comments on commit 1869532

Please sign in to comment.