summaryrefslogtreecommitdiffstats
path: root/pkg/commands/git.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2020-09-29 18:34:01 +1000
committerJesse Duffield <jessedduffield@gmail.com>2020-09-29 20:48:49 +1000
commit44248d9ab0818dfca6a5c1f5ee2ad5b0d45d4998 (patch)
tree832829129b6cc3690fc51e2c254d8b71d0de4657 /pkg/commands/git.go
parentc87b2c02fa2c82dd07a77335df6c7d2e7817a012 (diff)
pull branch model out into models package
Diffstat (limited to 'pkg/commands/git.go')
-rw-r--r--pkg/commands/git.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkg/commands/git.go b/pkg/commands/git.go
index c2c617b68..dcd77f526 100644
--- a/pkg/commands/git.go
+++ b/pkg/commands/git.go
@@ -20,6 +20,7 @@ import (
"github.com/jesseduffield/lazygit/pkg/config"
"github.com/jesseduffield/lazygit/pkg/env"
"github.com/jesseduffield/lazygit/pkg/i18n"
+ "github.com/jesseduffield/lazygit/pkg/models"
"github.com/jesseduffield/lazygit/pkg/utils"
"github.com/sirupsen/logrus"
gitconfig "github.com/tcnksm/go-gitconfig"
@@ -813,7 +814,7 @@ func (c *GitCommand) GetRemoteURL() string {
}
// CheckRemoteBranchExists Returns remote branch
-func (c *GitCommand) CheckRemoteBranchExists(branch *Branch) bool {
+func (c *GitCommand) CheckRemoteBranchExists(branch *models.Branch) bool {
_, err := c.OSCommand.RunCommandWithOutput(
"git show-ref --verify -- refs/remotes/origin/%s",
branch.Name,