File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -327,7 +327,8 @@ impl GitRepo {
327327 . as_ref ( )
328328 . map ( |c| bytes2path ( & c. path ) )
329329 . or_else ( || conflict. their . as_ref ( ) . map ( |c| bytes2path ( & c. path ) ) )
330- . unwrap ( ) ;
330+ . or_else ( || conflict. ancestor . as_ref ( ) . map ( |c| bytes2path ( & c. path ) ) )
331+ . unwrap_or_else ( || std:: path:: Path :: new ( "<unknown>" ) ) ;
331332 format ! ( "{}" , our_path. display( ) )
332333 } )
333334 . join ( "\n " ) ;
@@ -399,7 +400,8 @@ impl GitRepo {
399400 . as_ref ( )
400401 . map ( |c| bytes2path ( & c. path ) )
401402 . or_else ( || conflict. their . as_ref ( ) . map ( |c| bytes2path ( & c. path ) ) )
402- . unwrap ( ) ;
403+ . or_else ( || conflict. ancestor . as_ref ( ) . map ( |c| bytes2path ( & c. path ) ) )
404+ . unwrap_or_else ( || std:: path:: Path :: new ( "<unknown>" ) ) ;
403405 format ! ( "{}" , our_path. display( ) )
404406 } )
405407 . join ( "\n " ) ;
You can’t perform that action at this time.
0 commit comments