httpd: Remove `lastCommit` in `/tree` for entries
Signed-off-by: xphoniex <dj.2dixx@gmail.com>
This commit is contained in:
parent
59ff46e49c
commit
a3f4c2ec67
|
|
@ -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"
|
||||
}
|
||||
],
|
||||
|
|
|
|||
Loading…
Reference in New Issue