1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-23 05:50:55 +01:00
Summary: Fix for T4990, using export TERM directly in pre receive hook, tested for git

Test Plan:
pushing into repository over ssh will now not cause remote warning
No entry for terminal type "unknown";
using dumb terminal settings.

Tested with git

Reviewers: #blessed_reviewers, epriestley

Reviewed By: #blessed_reviewers, epriestley

Subscribers: epriestley, Korvin

Projects: #diffusion, #repositories

Maniphest Tasks: T4990

Differential Revision: https://secure.phabricator.com/D9744
This commit is contained in:
epriestley 2014-06-26 09:41:11 -07:00
parent 195def15b0
commit d541664956

View file

@ -171,7 +171,7 @@ final class PhabricatorRepositoryPullEngine
$bin, $bin,
$callsign); $callsign);
$hook = "#!/bin/sh\n{$cmd}\n"; $hook = "#!/bin/sh\nexport TERM=dumb\n{$cmd}\n";
Filesystem::writeFile($path, $hook); Filesystem::writeFile($path, $hook);
Filesystem::changePermissions($path, 0755); Filesystem::changePermissions($path, 0755);