Radish alpha
r
Radicle web interface
Radicle
Git (anonymous pull)
Log in to clone via SSH
httpd: Fix commit count in repo stats in history route
Sebastian Martinez committed 2 years ago
commit 3fcadc505875ef57f77260511184db283b8d651b
parent ed62ac4264514e9e5a8f1852af4982376a369e6e
1 file changed +1 -1
modified radicle-httpd/src/api/v1/projects.rs
@@ -206,7 +206,7 @@ async fn history_handler(

    let response = json!({
        "commits": commits,
-
        "stats":  repo.stats()?,
+
        "stats":  repo.stats_from(&sha)?,
    });

    Ok::<_, Error>((StatusCode::OK, Json(response)))