File tree Expand file tree Collapse file tree 1 file changed +2
-12
lines changed Expand file tree Collapse file tree 1 file changed +2
-12
lines changed Original file line number Diff line number Diff line change @@ -50,12 +50,7 @@ impl<'a> Repo<'a> {
5050
5151 let mut time_of_most_recent_commit = None ;
5252 let mut time_of_first_commit = None ;
53- let mut commit_iter = repo
54- . head ( ) ?
55- . peel_to_commit_in_place ( ) ?
56- . ancestors ( )
57- . all ( )
58- . peekable ( ) ;
53+ let mut commit_iter = repo. head_commit ( ) ?. ancestors ( ) . all ( ) . peekable ( ) ;
5954
6055 let mailmap = repo. load_mailmap ( ) ;
6156 let mut author_to_number_of_commits: HashMap < Sig , usize > = HashMap :: new ( ) ;
@@ -301,12 +296,7 @@ impl<'a> Repo<'a> {
301296 }
302297
303298 pub fn get_head_refs ( & self ) -> Result < HeadRefs > {
304- let head_oid = self
305- . repo
306- . head ( )
307- . context ( "Could not read HEAD" ) ?
308- . peel_to_id_in_place ( )
309- . context ( "The repository isn't initialized" ) ??;
299+ let head_oid = self . repo . head_id ( ) . context ( "Could not read HEAD" ) ?;
310300 let refs_info = self
311301 . repo
312302 . references ( ) ?
You can’t perform that action at this time.
0 commit comments