Page MenuHomePhorge

git push into a fresh repository fails with PHP 8.1 strlen(null) error
Closed, ResolvedPublic

Description

Doing a git push into a fresh repository over https fails with a PHP 8.1 strlen(null) error

$ git push
Enumerating objects: 341, done.
Counting objects: 100% (341/341), done.
Delta compression using up to 2 threads
Compressing objects: 100% (331/331), done.
Writing objects: 100% (341/341), 2.84 MiB | 5.74 MiB/s, done.
Total 341 (delta 67), reused 0 (delta 0), pack-reused 0
remote: Resolving deltas: 100% (67/67), done.
remote: [2023-07-28 13:49:31] EXCEPTION: (RuntimeException) strlen(): Passing null to parameter #1 ($string) of type string is deprecated at [<arcanist>/src/error/PhutilErrorHandler.php:261]
remote: arcanist(head=master, ref.master=8130241a11ac, custom=4), phorge(head=master, ref.master=7c1487e4dcfa)
remote:   #0 PhutilErrorHandler::handleError(integer, string, string, integer) called at [<phorge>/src/applications/diffusion/engine/DiffusionCommitHookEngine.php:1136]
remote:   #1 DiffusionCommitHookEngine::newPushEvent() called at [<phorge>/src/applications/diffusion/engine/DiffusionCommitHookEngine.php:214]
remote:   #2 DiffusionCommitHookEngine::execute() called at [<phorge>/scripts/repository/commit_hook.php:207]
To https://my.phorge.site/source/myrepo.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://my.phorge.site/source/myrepo.git'

Related Objects

View Standalone Graph
This task is connected to more than 200 other tasks. Only direct parents and subtasks are shown here. Use View Standalone Graph to show more of the graph.