File tree 2 files changed +6
-5
lines changed
2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,6 @@ use std::{
14
14
io:: Write ,
15
15
path:: { Path , PathBuf } ,
16
16
} ;
17
-
18
17
///
19
18
#[ derive( PartialEq , Eq , Debug , Clone ) ]
20
19
pub struct Head {
@@ -49,9 +48,11 @@ pub fn repo_dir(repo_path: &RepoPath) -> Result<PathBuf> {
49
48
pub fn repo_work_dir ( repo_path : & RepoPath ) -> Result < String > {
50
49
let repo = repo ( repo_path) ?;
51
50
52
- // TODO: Is this safe?
53
- // Allow Bare repositories
54
- if repo. is_bare ( ) { return Ok ( repo_path. gitpath ( ) . to_str ( ) . unwrap ( ) . to_string ( ) ) } ;
51
+ // TODO: Is this safe?
52
+ // Allow Bare repositories
53
+ if repo. is_bare ( ) {
54
+ return Ok ( repo_path. gitpath ( ) . to_str ( ) . unwrap ( ) . to_string ( ) ) ;
55
+ } ;
55
56
56
57
work_dir ( & repo) ?. to_str ( ) . map_or_else (
57
58
|| Err ( Error :: Generic ( "invalid workdir" . to_string ( ) ) ) ,
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ impl WorkTreesTab {
31
31
Self {
32
32
visible : false ,
33
33
worktrees : WorkTreesComponent :: new (
34
- "Hello Worktrees " ,
34
+ "Worktree " ,
35
35
theme,
36
36
key_config. clone ( ) ,
37
37
) ,
You can’t perform that action at this time.
0 commit comments