Radish alpha
h
Radicle Heartwood Protocol & Stack
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 0e0ff38ff7c1bd57f343432cff6001c414b2154b
parent a41f67d9ef64bed30c581b8de39c19ba3d2726f7
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)))