1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-26 00:32:42 +01:00
phorge-phorge/scripts
Valerio Bozzolan a5c93dea56 Fix InvalidArgumentException on commit hook
Summary:
Fix a regression introduced here:

96ae4ba13a

I reproduced this exception executing "svn commit" on a hosted repository.

That crash happened because the PHP getenv() function can return false.
But, that is a very terrible value that blasts the non-string-empty check.

So, now the default getenv() value is skipped, without causing problems.

Closes T15253
Ref T15190

Test Plan: - I've run `svn commit` and I have not encountered any issue now

Reviewers: O1 Blessed Committers, avivey

Reviewed By: O1 Blessed Committers, avivey

Subscribers: speck, tobiaswiese, Matthew, Cigaryno

Maniphest Tasks: T15253, T15190

Differential Revision: https://we.phorge.it/D25122
2023-04-14 22:09:23 +02:00
..
almanac
cache
celerity
daemon Merge a small amount of remaining "libphutil/" code with Phabricator, break libphutil dependency 2020-02-12 15:17:36 -08:00
diviner
drydock When bin/drydock lease is interrupted, release leases 2018-02-13 13:14:21 -08:00
fact
files
init Update a Phabricator -> Arcanist include path for scripts in Phabricator 2020-02-14 08:32:26 -08:00
install Merge Phacility/master into phorge 2022-07-25 11:50:26 -07:00
lipsum
mail Remove "iconv" PHP extension dependency 2019-01-30 19:46:58 -08:00
repository Fix InvalidArgumentException on commit hook 2023-04-14 22:09:23 +02:00
search
setup Remove "bin/celerity" dependency on database setup 2021-11-19 10:11:06 -08:00
sql Remove product literal strings in "pht()", part 1 2022-04-25 12:22:25 -07:00
ssh PHP 8.1: fixes for strlen() not accepting NULL anymore, part 2 2023-04-01 15:20:13 +02:00
symbols PHP 8.1: fixes for strlen() not accepting NULL anymore, part 2 2023-04-01 15:20:13 +02:00
util
__init_script__.php
manage_bulk.php Allow bulk edits to be made silently if you have CLI access 2018-01-19 13:24:54 -08:00