summaryrefslogtreecommitdiffstats
path: root/modules/git/command.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/git/command.go')
-rw-r--r--modules/git/command.go1
1 files changed, 0 insertions, 1 deletions
diff --git a/modules/git/command.go b/modules/git/command.go
index 53a04f64be..6c931790c0 100644
--- a/modules/git/command.go
+++ b/modules/git/command.go
@@ -98,7 +98,6 @@ func (c *Command) RunInDirTimeoutEnvFullPipeline(env []string, timeout time.Dura
// RunInDirTimeoutEnvFullPipelineFunc executes the command in given directory with given timeout,
// it pipes stdout and stderr to given io.Writer and passes in an io.Reader as stdin. Between cmd.Start and cmd.Wait the passed in function is run.
func (c *Command) RunInDirTimeoutEnvFullPipelineFunc(env []string, timeout time.Duration, dir string, stdout, stderr io.Writer, stdin io.Reader, fn func(context.Context, context.CancelFunc) error) error {
-
if timeout == -1 {
timeout = DefaultCommandExecutionTimeout
}