File tree 3 files changed +3
-3
lines changed
3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ impl From<&str> for RepoPath {
51
51
pub fn repo ( repo_path : & RepoPath ) -> Result < Repository > {
52
52
let repo = Repository :: open_ext (
53
53
repo_path. gitpath ( ) ,
54
- RepositoryOpenFlags :: empty ( ) ,
54
+ RepositoryOpenFlags :: FROM_ENV ,
55
55
Vec :: < & Path > :: new ( ) ,
56
56
) ?;
57
57
Original file line number Diff line number Diff line change @@ -123,7 +123,7 @@ pub fn submodule_parent_info(
123
123
124
124
if let Ok ( parent) = Repository :: open_ext (
125
125
parent_path,
126
- RepositoryOpenFlags :: empty ( ) ,
126
+ RepositoryOpenFlags :: FROM_ENV ,
127
127
Vec :: < & Path > :: new ( ) ,
128
128
) {
129
129
let parent_wd = work_dir ( & parent) ?. to_path_buf ( ) ;
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ pub struct Head {
28
28
pub fn repo_open_error ( repo_path : & RepoPath ) -> Option < String > {
29
29
Repository :: open_ext (
30
30
repo_path. gitpath ( ) ,
31
- RepositoryOpenFlags :: empty ( ) ,
31
+ RepositoryOpenFlags :: FROM_ENV ,
32
32
Vec :: < & Path > :: new ( ) ,
33
33
)
34
34
. map_or_else ( |e| Some ( e. to_string ( ) ) , |_| None )
You can’t perform that action at this time.
0 commit comments