From d541664956c77273fa9708a1b962423827e8898a Mon Sep 17 00:00:00 2001 From: epriestley Date: Thu, 26 Jun 2014 09:41:11 -0700 Subject: [PATCH] Fixes T4990 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 --- .../repository/engine/PhabricatorRepositoryPullEngine.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/applications/repository/engine/PhabricatorRepositoryPullEngine.php b/src/applications/repository/engine/PhabricatorRepositoryPullEngine.php index 5ce19f875f..88f2607ffe 100644 --- a/src/applications/repository/engine/PhabricatorRepositoryPullEngine.php +++ b/src/applications/repository/engine/PhabricatorRepositoryPullEngine.php @@ -171,7 +171,7 @@ final class PhabricatorRepositoryPullEngine $bin, $callsign); - $hook = "#!/bin/sh\n{$cmd}\n"; + $hook = "#!/bin/sh\nexport TERM=dumb\n{$cmd}\n"; Filesystem::writeFile($path, $hook); Filesystem::changePermissions($path, 0755);