summaryrefslogtreecommitdiffstats
path: root/pkg/integration/components/shell.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/integration/components/shell.go')
-rw-r--r--pkg/integration/components/shell.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/pkg/integration/components/shell.go b/pkg/integration/components/shell.go
index 60c627918..e3df61a50 100644
--- a/pkg/integration/components/shell.go
+++ b/pkg/integration/components/shell.go
@@ -9,8 +9,6 @@ import (
"path/filepath"
"runtime"
"time"
-
- "github.com/jesseduffield/lazygit/pkg/utils"
)
// this is for running shell commands, mostly for the sake of setting up the repo
@@ -289,7 +287,7 @@ func (self *Shell) CreateRepoHistory() *Shell {
// Choose a random commit within the last 20 commits on the master branch
lastMasterCommit := totalCommits - 1
- commitOffset := rand.Intn(utils.Min(lastMasterCommit, 5)) + 1
+ commitOffset := rand.Intn(min(lastMasterCommit, 5)) + 1
// Create the feature branch and checkout the chosen commit
self.NewBranchFrom(branchName, fmt.Sprintf("master~%d", commitOffset))