diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2020-02-18 20:53:46 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2020-02-18 23:07:38 +1100 |
commit | 66e6369c284e96ed5af5b6d178b9270f59b99e56 (patch) | |
tree | ae234052296c51cf8c2d4b7c6a2b20ce34f13af0 /pkg/commands/git.go | |
parent | 0f0da9c32a0a8ced0f88128e091452ba0478eea9 (diff) |
allow fastforwarding the current branchv0.14.4
Diffstat (limited to 'pkg/commands/git.go')
-rw-r--r-- | pkg/commands/git.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pkg/commands/git.go b/pkg/commands/git.go index ca0c83501..7f9849041 100644 --- a/pkg/commands/git.go +++ b/pkg/commands/git.go @@ -408,6 +408,11 @@ func (c *GitCommand) Pull(args string, ask func(string) string) error { return c.OSCommand.DetectUnamePass("git pull --no-edit "+args, ask) } +// PullWithoutPasswordCheck assumes that the pull will not prompt the user for a password +func (c *GitCommand) PullWithoutPasswordCheck(args string) error { + return c.OSCommand.RunCommand("git pull --no-edit " + args) +} + // Push pushes to a branch func (c *GitCommand) Push(branchName string, force bool, upstream string, args string, ask func(string) string) error { forceFlag := "" |