aboutsummaryrefslogtreecommitdiffstats
path: root/modules/git/repo.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/git/repo.go')
-rw-r--r--modules/git/repo.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/git/repo.go b/modules/git/repo.go
index 89af7aa9e1..3ff2b6fe2d 100644
--- a/modules/git/repo.go
+++ b/modules/git/repo.go
@@ -211,8 +211,8 @@ type PushOptions struct {
}
// Push pushs local commits to given remote branch.
-func Push(repoPath string, opts PushOptions) error {
- cmd := NewCommand("push")
+func Push(ctx context.Context, repoPath string, opts PushOptions) error {
+ cmd := NewCommandContext(ctx, "push")
if opts.Force {
cmd.AddArguments("-f")
}