File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -75,9 +75,14 @@ defmodule Mix.Tasks.InstallTest do
75
75
76
76
hooks_file = Install . run ( [ "--dry-run" , "--quiet" ] )
77
77
78
+ # Use the resolved git path to fix symlinks on SO (such as macOS)
79
+ # This is not ideal, but using `Path.expand(project_path)` instead
80
+ # is not working because in macOS /var is a symlink to /private/var
81
+ resolved_project_path = GitHooks.Git.GitPath . resolve_app_path ( )
82
+
78
83
assert hooks_file == [
79
- pre_commit: expect_hook_template ( "pre_commit" , project_path ) ,
80
- pre_push: expect_hook_template ( "pre_push" , project_path )
84
+ pre_commit: expect_hook_template ( "pre_commit" , resolved_project_path ) ,
85
+ pre_push: expect_hook_template ( "pre_push" , resolved_project_path )
81
86
]
82
87
end )
83
88
end
You can’t perform that action at this time.
0 commit comments