Ping payloads do not have a after value (containing a commit hash) unlike push payloads.
Currently the server is not able to detect that the payload is a ping, looks for the commit in the database with hash == after, and since it is undefined, returns the entire database (fullmatch) instead of returning nothing.
Instead, it should detect the payload as ping, and if the repository exists return 204, if not 404 otherwise.
Ping payloads do not have a
after
value (containing a commit hash) unlike push payloads. Currently the server is not able to detect that the payload is a ping, looks for the commit in the database with hash ==after
, and since it is undefined, returns the entire database (fullmatch) instead of returning nothing.Instead, it should detect the payload as ping, and if the repository exists return 204, if not 404 otherwise.