summaryrefslogtreecommitdiffstats
path: root/pkg/commands/git_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/commands/git_test.go')
-rw-r--r--pkg/commands/git_test.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/pkg/commands/git_test.go b/pkg/commands/git_test.go
index ab519e9ba..6e7df61aa 100644
--- a/pkg/commands/git_test.go
+++ b/pkg/commands/git_test.go
@@ -1716,7 +1716,7 @@ func TestGitCommandDiscardOldFileChanges(t *testing.T) {
type scenario struct {
testName string
getLocalGitConfig func(string) (string, error)
- commits []*Commit
+ commits []*models.Commit
commitIndex int
fileName string
command func(string, ...string) *exec.Cmd
@@ -1729,7 +1729,7 @@ func TestGitCommandDiscardOldFileChanges(t *testing.T) {
func(string) (string, error) {
return "", nil
},
- []*Commit{},
+ []*models.Commit{},
0,
"test999.txt",
nil,
@@ -1742,7 +1742,7 @@ func TestGitCommandDiscardOldFileChanges(t *testing.T) {
func(string) (string, error) {
return "true", nil
},
- []*Commit{{Name: "commit", Sha: "123456"}},
+ []*models.Commit{{Name: "commit", Sha: "123456"}},
0,
"test999.txt",
nil,
@@ -1755,7 +1755,7 @@ func TestGitCommandDiscardOldFileChanges(t *testing.T) {
func(string) (string, error) {
return "", nil
},
- []*Commit{
+ []*models.Commit{
{Name: "commit", Sha: "123456"},
{Name: "commit2", Sha: "abcdef"},
},