diff options
Diffstat (limited to 'modules/git/repo_archive.go')
-rw-r--r-- | modules/git/repo_archive.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/modules/git/repo_archive.go b/modules/git/repo_archive.go index cf09bba0db..b7c339c271 100644 --- a/modules/git/repo_archive.go +++ b/modules/git/repo_archive.go @@ -57,7 +57,12 @@ func (repo *Repository) CreateArchive(ctx context.Context, format ArchiveType, t ) var stderr strings.Builder - err := NewCommand(ctx, args...).RunInDirPipeline(repo.Path, target, &stderr) + err := NewCommand(ctx, args...).RunWithContext(&RunContext{ + Timeout: -1, + Dir: repo.Path, + Stdout: target, + Stderr: &stderr, + }) if err != nil { return ConcatenateError(err, stderr.String()) } |