mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-07-28 16:02:01 +03:00
Fix test
This commit is contained in:
@ -224,7 +224,7 @@ func getCurrentRepoGitDirPath(
|
|||||||
|
|
||||||
// If this error causes issues, we could relax the constraint and just always
|
// If this error causes issues, we could relax the constraint and just always
|
||||||
// return the path
|
// return the path
|
||||||
return "", "", errors.Errorf("could not find git dir for %s: the path '%s' is not under `worktrees` or `modules` directories.", currentPath, worktreeGitPath)
|
return "", "", errors.Errorf("could not find git dir for %s: the path '%s' is not under `worktrees` or `modules` directories", currentPath, worktreeGitPath)
|
||||||
}
|
}
|
||||||
|
|
||||||
// takes a path containing a symlink and returns the true path
|
// takes a path containing a symlink and returns the true path
|
||||||
|
@ -135,7 +135,7 @@ func TestGetRepoPathsAux(t *testing.T) {
|
|||||||
},
|
},
|
||||||
Path: "/path/to/repo/my/submodule1",
|
Path: "/path/to/repo/my/submodule1",
|
||||||
Expected: nil,
|
Expected: nil,
|
||||||
Err: errors.New("failed to get repo git dir path: could not find git dir for /path/to/repo/my/submodule1: path is not under `worktrees` or `modules` directories"),
|
Err: errors.New("failed to get repo git dir path: could not find git dir for /path/to/repo/my/submodule1: the path '/random/submodule1' is not under `worktrees` or `modules` directories"),
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user