Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Paste
P785
githome.diff
Active
Public
Actions
Authored by
epriestley
on Apr 12 2013, 1:36 PM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Flag For Later
Award Token
Tags
None
Referenced Files
F40286: githome.diff
Feb 24 2016, 1:31 AM
2016-02-24 01:31:53 (UTC+0)
Subscribers
None
diff --git a/src/applications/repository/storage/PhabricatorRepository.php b/src/applications/repository/storage/PhabricatorRepository.php
index ebc97a3..6132b08 100644
--- a/src/applications/repository/storage/PhabricatorRepository.php
+++ b/src/applications/repository/storage/PhabricatorRepository.php
@@ -159,7 +159,7 @@ final class PhabricatorRepository extends PhabricatorRepositoryDAO
'csprintf',
array_merge(
array(
- "(ssh-add %s && git {$pattern})",
+ "(ssh-add %s && HOME=/ git {$pattern})",
$this->getSSHKeyfile(),
),
$args));
@@ -223,7 +223,7 @@ final class PhabricatorRepository extends PhabricatorRepositoryDAO
$pattern = "svn --non-interactive {$pattern}";
break;
case PhabricatorRepositoryType::REPOSITORY_TYPE_GIT:
- $pattern = "git {$pattern}";
+ $pattern = "HOME=/ git {$pattern}";
break;
case PhabricatorRepositoryType::REPOSITORY_TYPE_MERCURIAL:
$pattern = "hg {$pattern}";
@@ -248,7 +248,7 @@ final class PhabricatorRepository extends PhabricatorRepositoryDAO
array_unshift($args, $this->getLocalPath());
break;
case PhabricatorRepositoryType::REPOSITORY_TYPE_GIT:
- $pattern = "(cd %s && git {$pattern})";
+ $pattern = "(cd %s && HOME=/ git {$pattern})";
array_unshift($args, $this->getLocalPath());
break;
case PhabricatorRepositoryType::REPOSITORY_TYPE_MERCURIAL:
Event Timeline
epriestley
edited the content of this paste.
(Show Details)
Apr 12 2013, 1:36 PM
2013-04-12 13:36:06 (UTC+0)
Log In to Comment