Commit 98089bf 1 parent f52ae55 commit 98089bf Copy full SHA for 98089bf
File tree 1 file changed +17
-5
lines changed
1 file changed +17
-5
lines changed Original file line number Diff line number Diff line change @@ -285,13 +285,25 @@ impl<'a> Context<'a> {
285
285
..git:: Permissions :: default_for_level ( git_sec:: Trust :: Full )
286
286
} ) ;
287
287
288
- let shared_repo = ThreadSafeRepository :: discover_with_environment_overrides_opts (
289
- & self . current_dir ,
290
- Default :: default ( ) ,
291
- git_open_opts_map,
292
- ) ?;
288
+ let shared_repo =
289
+ match ThreadSafeRepository :: discover_with_environment_overrides_opts (
290
+ & self . current_dir ,
291
+ Default :: default ( ) ,
292
+ git_open_opts_map,
293
+ ) {
294
+ Ok ( repo) => repo,
295
+ Err ( e) => {
296
+ log:: debug!( "Failed to find git repo: {e}" ) ;
297
+ return Err ( e) ;
298
+ }
299
+ } ;
293
300
294
301
let repository = shared_repo. to_thread_local ( ) ;
302
+ log:: trace!(
303
+ "Found git repo: {repository:?}, (trust: {:?})" ,
304
+ repository. git_dir_trust( )
305
+ ) ;
306
+
295
307
let branch = get_current_branch ( & repository) ;
296
308
let remote = get_remote_repository_info ( & repository, branch. as_deref ( ) ) ;
297
309
let path = repository. path ( ) . to_path_buf ( ) ;
You can’t perform that action at this time.
0 commit comments