@@ -315,33 +315,29 @@ impl Info {
315
315
Language :: get_language_stats ( workdir_str, & config. excluded ) ?;
316
316
317
317
let (
318
- ( repository_name, repository_url) ,
319
318
git_history,
320
319
( number_of_tags, number_of_branches) ,
321
- current_commit_info,
322
320
( git_v, git_user) ,
323
321
version,
324
322
pending,
325
323
repo_size,
326
- project_license,
327
- dominant_language,
328
324
) = futures:: join!(
329
- Info :: get_repo_name_and_url( & repo) ,
330
325
Info :: get_git_history( workdir_str, config. no_merges) ,
331
326
Info :: get_number_of_tags_branches( workdir_str) ,
332
- Info :: get_current_commit_info( & repo) ,
333
327
Info :: get_git_version_and_username( workdir_str) ,
334
328
Info :: get_version( workdir_str) ,
335
329
Info :: get_pending_changes( workdir_str) ,
336
- Info :: get_packed_size( workdir_str) ,
337
- Info :: get_project_license( workdir_str) ,
338
- Language :: get_dominant_language( & languages_stats)
330
+ Info :: get_packed_size( workdir_str)
339
331
) ;
340
332
333
+ let ( repository_name, repository_url) = Info :: get_repo_name_and_url ( & repo) ;
334
+ let current_commit_info = Info :: get_current_commit_info ( & repo) ;
341
335
let creation_date = Info :: get_creation_date ( & git_history) ;
342
336
let number_of_commits = Info :: get_number_of_commits ( & git_history) ;
343
337
let authors = Info :: get_authors ( & git_history, config. number_of_authors ) ;
344
338
let last_change = Info :: get_date_of_last_commit ( & git_history) ;
339
+ let project_license = Info :: get_project_license ( workdir_str) ;
340
+ let dominant_language = Language :: get_dominant_language ( & languages_stats) ;
345
341
346
342
Ok ( Info {
347
343
git_version : git_v,
@@ -385,7 +381,7 @@ impl Info {
385
381
}
386
382
387
383
async fn get_number_of_tags_branches ( dir : & str ) -> ( usize , usize ) {
388
- let tags = async {
384
+ let tags = {
389
385
let output = Command :: new ( "git" )
390
386
. args ( vec ! [ "-C" , dir, "tag" ] )
391
387
. output ( )
@@ -397,7 +393,7 @@ impl Info {
397
393
tags. lines ( ) . count ( )
398
394
} ;
399
395
400
- let branches = async {
396
+ let branches = {
401
397
let output = Command :: new ( "git" )
402
398
. args ( vec ! [ "-C" , dir, "branch" , "-r" ] )
403
399
. output ( )
@@ -413,10 +409,10 @@ impl Info {
413
409
}
414
410
} ;
415
411
416
- futures :: join! ( tags, branches)
412
+ ( tags, branches)
417
413
}
418
414
419
- async fn get_repo_name_and_url ( repo : & Repository ) -> ( String , String ) {
415
+ fn get_repo_name_and_url ( repo : & Repository ) -> ( String , String ) {
420
416
let config = repo
421
417
. config ( )
422
418
. chain_err ( || "Could not retrieve git configuration data" ) ;
@@ -451,7 +447,7 @@ impl Info {
451
447
( repository_name, remote_url)
452
448
}
453
449
454
- async fn get_current_commit_info ( repo : & Repository ) -> Result < CommitInfo > {
450
+ fn get_current_commit_info ( repo : & Repository ) -> Result < CommitInfo > {
455
451
let head = repo
456
452
. head ( )
457
453
. chain_err ( || "Error while retrieving reference information" ) ?;
@@ -683,7 +679,7 @@ impl Info {
683
679
Ok ( output)
684
680
}
685
681
686
- async fn get_project_license ( dir : & str ) -> Result < String > {
682
+ fn get_project_license ( dir : & str ) -> Result < String > {
687
683
fn is_license_file < S : AsRef < str > > ( file_name : S ) -> bool {
688
684
LICENSE_FILES
689
685
. iter ( )
0 commit comments