File tree Expand file tree Collapse file tree 1 file changed +10
-15
lines changed Expand file tree Collapse file tree 1 file changed +10
-15
lines changed Original file line number Diff line number Diff line change @@ -46,21 +46,16 @@ def calculate_monthly_stat(
46
46
images = year_month_file .content .count ("Build manifest" )
47
47
48
48
with plumbum .local .env (TZ = "UTC" ):
49
- future = (
50
- git [
51
- "log" ,
52
- "--oneline" ,
53
- "--since" ,
54
- f"{ year_month_date } .midnight" ,
55
- "--until" ,
56
- f"{ year_month_date + relativedelta .relativedelta (months = 1 )} .midnight" ,
57
- "--first-parent" ,
58
- ]
59
- & plumbum .BG
60
- )
61
- future .wait ()
62
- commits = len (future .stdout .splitlines ())
63
-
49
+ git_log = git [
50
+ "log" ,
51
+ "--oneline" ,
52
+ "--since" ,
53
+ f"{ year_month_date } .midnight" ,
54
+ "--until" ,
55
+ f"{ year_month_date + relativedelta .relativedelta (months = 1 )} .midnight" ,
56
+ "--first-parent" ,
57
+ ]()
58
+ commits = len (git_log .splitlines ())
64
59
return Statistics (builds = builds , images = images , commits = commits )
65
60
66
61
You can’t perform that action at this time.
0 commit comments