We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 195afb9 commit 1183b33Copy full SHA for 1183b33
services/pull/temp_repo.go
@@ -37,6 +37,9 @@ type prTmpRepoContext struct {
37
errbuf *strings.Builder // any use should be preceded by a Reset and preferably after use
38
}
39
40
+// PrepareGitCmd prepares a git command with the correct directory, environment, and output buffers
41
+// This function can only be called with gitcmd.Run()
42
+// Do NOT use it with gitcmd.RunStd*() functions, otherwise it will panic
43
func (ctx *prTmpRepoContext) PrepareGitCmd(cmd *gitcmd.Command) *gitcmd.Command {
44
ctx.outbuf.Reset()
45
ctx.errbuf.Reset()
0 commit comments