aboutsummaryrefslogtreecommitdiffstats
path: root/modules/git/repo_index.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/git/repo_index.go')
-rw-r--r--modules/git/repo_index.go8
1 files changed, 7 insertions, 1 deletions
diff --git a/modules/git/repo_index.go b/modules/git/repo_index.go
index 8e76c5e466..53de0f1cb8 100644
--- a/modules/git/repo_index.go
+++ b/modules/git/repo_index.go
@@ -106,7 +106,13 @@ func (repo *Repository) RemoveFilesFromIndex(filenames ...string) error {
buffer.WriteByte('\000')
}
}
- return cmd.RunInDirFullPipeline(repo.Path, stdout, stderr, bytes.NewReader(buffer.Bytes()))
+ return cmd.RunWithContext(&RunContext{
+ Timeout: -1,
+ Dir: repo.Path,
+ Stdin: bytes.NewReader(buffer.Bytes()),
+ Stdout: stdout,
+ Stderr: stderr,
+ })
}
// AddObjectToIndex adds the provided object hash to the index at the provided filename