1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-23 14:00:56 +01:00
phorge-phorge/src
Alex Vandiver 972604e0e5 Set TERM to prevent No entry for terminal type "unknown" messages during fetch
Summary:
Fetches cause output in `/var/tmp/phd/log/daemons.log` as
follows:
```
PHLOG: 'Unexpected output while updating repository "rREPONAME": No entry for terminal type "unknown";
using dumb terminal settings.
' at [/path/to/phabricator/src/applications/repository/daemon/PhabricatorRepositoryPullLocalDaemon.php:455]
```

These warnings come from PHP itself.  Silence these warnings by providing a
known value for `TERM` before shelling out to the PHP script.

See also D9744 (reverted in D11644) and T4990/T7119, which are a similar issue,
but in the pre-receive hooks, not the pull daemons.

Test Plan:
Enabled in production, observed errors to be silenced and
no SSH hangs

Reviewers: #blessed_reviewers, epriestley

Reviewed By: #blessed_reviewers, epriestley

Subscribers: epriestley

Differential Revision: https://secure.phabricator.com/D17100
2016-12-21 15:17:46 -08:00
..
__tests__ Use PhutilClassMapQuery instead of PhutilSymbolLoader 2015-08-14 07:49:01 +10:00
aphront Fix an issue where unexpected debugging output would run afoul of automatic compression 2016-12-14 07:27:08 -08:00
applications Set TERM to prevent No entry for terminal type "unknown" messages during fetch 2016-12-21 15:17:46 -08:00
docs Fix typo in Drydock user documentation 2016-12-19 18:00:14 -08:00
extensions Add src/extensions/ to Phabricator 2013-08-14 15:38:06 -07:00
infrastructure Simplify Auditors custom field in Differential 2016-12-16 10:09:30 -08:00
view Reorganize phui-object-item CSS, add drag ui 2016-12-14 11:53:17 -08:00
__phutil_library_init__.php
__phutil_library_map__.php Add a Dashboard MenuItem 2016-12-16 13:33:03 -08:00