Commit b9cafd70 authored by Florian Azizian's avatar Florian Azizian
Browse files

FEAT #16564 TIME 0 Improve git commit

parent c11f4c05
......@@ -424,7 +424,7 @@ class AuthenticationController
preg_match('#^ref:(.+)$#', $head, $matches);
$currentHead = trim($matches[1]);
if (empty($currentHead)) {
if (empty($currentHead) || !is_file('.git/' . $currentHead)) {
return $response->withJson(['hash' => null]);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment