mirror of
https://seed.radicle.dev/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5.git
synced 2026-11-16 08:10:40 +08:00
httpd: Remove lastCommit in /tree for entries
Signed-off-by: xphoniex <dj.2dixx@gmail.com>
This commit is contained in:
@@ -46,7 +46,6 @@ pub(crate) fn tree(tree: &Tree, path: &str, stats: &Stats) -> Value {
|
||||
json!({
|
||||
"path": prefix.join(entry.name()),
|
||||
"name": entry.name(),
|
||||
"lastCommit": Value::Null,
|
||||
"kind": if entry.is_tree() { "tree" } else { "blob" },
|
||||
})
|
||||
})
|
||||
|
||||
@@ -717,13 +717,11 @@ mod routes {
|
||||
{
|
||||
"path": "dir1",
|
||||
"name": "dir1",
|
||||
"lastCommit": null,
|
||||
"kind": "tree"
|
||||
},
|
||||
{
|
||||
"path": "README",
|
||||
"name": "README",
|
||||
"lastCommit": null,
|
||||
"kind": "blob"
|
||||
}
|
||||
],
|
||||
@@ -766,7 +764,6 @@ mod routes {
|
||||
{
|
||||
"path": "dir1/README",
|
||||
"name": "README",
|
||||
"lastCommit": null,
|
||||
"kind": "blob"
|
||||
}
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user