File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
9
9
10
10
## Fixed
11
11
- do not allow to ignore .gitignore files ([ #825 ] ( https://github.com/extrawurst/gitui/issues/825 ) )
12
+ - crash in shallow repo ([ #836 ] ( https://github.com/extrawurst/gitui/issues/836 ) )
12
13
13
14
## [ 0.16.2] - 2021-07-10
14
15
Original file line number Diff line number Diff line change @@ -49,7 +49,9 @@ pub(crate) fn get_commit_diff(
49
49
let commit = repo. find_commit ( id. into ( ) ) ?;
50
50
let commit_tree = commit. tree ( ) ?;
51
51
let parent = if commit. parent_count ( ) > 0 {
52
- Some ( repo. find_commit ( commit. parent_id ( 0 ) ?) ?. tree ( ) ?)
52
+ repo. find_commit ( commit. parent_id ( 0 ) ?)
53
+ . ok ( )
54
+ . and_then ( |c| c. tree ( ) . ok ( ) )
53
55
} else {
54
56
None
55
57
} ;
You can’t perform that action at this time.
0 commit comments