Closed keepsimple1 closed 1 year ago
Upon debugging, the root cause is that repo::tree()
fails to retrieve the last_commit
and returns error. In more details, the repo::last_commit()
method uses a filter to iterate the history of the tree. However, when the filter path was empty, the only empty commit was filtered out and the iterator returned None
.
The fix is merged. Thanks.
reported from discord by @xphoniex :
for e2e suite of radicle-interface we have an empty branch with a single commit and no files (you can re-create one with
git commit --allow-empty
) and surf has trouble displaying it:and when hitting
http://0.0.0.0:8080/api/v1/projects/rad:zKtT7DmF9H34KkvcKj9PHW19WzjT/tree/af3641c3e038698a75649f924d5a39bb551409cd/
, httpd shows: