1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-01 03:02:43 +01:00
phorge-phorge/src/applications/repository
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
..
conduit Remove "repository.create" Conduit API method 2016-05-04 16:10:19 -07:00
config Move FontIcon calls to Icon 2016-01-28 08:48:45 -08:00
constants Give users a modal VCS choice when creating a new repository 2016-04-29 09:20:31 -07:00
customfield Move various other callsites away from callsigns 2016-01-04 06:54:42 -08:00
daemon Set TERM to prevent No entry for terminal type "unknown" messages during fetch 2016-12-21 15:17:46 -08:00
data Remove all uses of PhutilGitURI in Phabricator 2016-06-13 07:20:58 -07:00
editor Provide more UI guidance when creating repositories 2016-05-11 06:35:35 -07:00
engine Do initial repository imports at a lower priority and finish importing commits before starting new ones 2016-09-21 16:41:01 -07:00
graphcache Remove duplicated duplicated words 2015-06-27 08:43:44 -07:00
mail Build separate mail for each recipient, honoring recipient access levels 2015-06-03 18:59:31 -07:00
management Provide a new "hint" table for weird commits (rewritten, unreadable) 2016-08-24 09:31:46 -07:00
phid When commits have a "rewritten" hint, try to show that in handles in other applications 2016-08-24 09:35:19 -07:00
query Cache Almanac URIs for repositories 2016-12-06 09:14:45 -08:00
response Accept and route VCS HTTP requests 2013-10-29 15:32:40 -07:00
search Inch toward using ApplicationSearch to power related objects 2016-06-29 11:22:29 -07:00
storage Cache Almanac URIs for repositories 2016-12-06 09:14:45 -08:00
worker Do initial repository imports at a lower priority and finish importing commits before starting new ones 2016-09-21 16:41:01 -07:00