Skip to content

Commit 1183b33

Browse files
committed
add comment
1 parent 195afb9 commit 1183b33

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

services/pull/temp_repo.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ type prTmpRepoContext struct {
3737
errbuf *strings.Builder // any use should be preceded by a Reset and preferably after use
3838
}
3939

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
4043
func (ctx *prTmpRepoContext) PrepareGitCmd(cmd *gitcmd.Command) *gitcmd.Command {
4144
ctx.outbuf.Reset()
4245
ctx.errbuf.Reset()

0 commit comments

Comments
 (0)