httpd: Remove `lastCommit` in `/tree` for entries

Signed-off-by: xphoniex <dj.2dixx@gmail.com>
This commit is contained in:
xphoniex 2023-01-21 16:53:46 +00:00 committed by Alexis Sellier
parent 59ff46e49c
commit a3f4c2ec67
No known key found for this signature in database
2 changed files with 0 additions and 4 deletions

View File

@ -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" },
})
})

View File

@ -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"
}
],