Page MenuHomePhabricator

D7818.diff

diff --git a/src/applications/repository/engine/PhabricatorRepositoryPullEngine.php b/src/applications/repository/engine/PhabricatorRepositoryPullEngine.php
--- a/src/applications/repository/engine/PhabricatorRepositoryPullEngine.php
+++ b/src/applications/repository/engine/PhabricatorRepositoryPullEngine.php
@@ -82,32 +82,29 @@
$this->executeSubversionCreate();
}
} else {
- if ($repository->isHosted()) {
- if ($is_git) {
- $this->installGitHook();
- } else if ($is_svn) {
- $this->installSubversionHook();
- } else if ($is_hg) {
- $this->installMercurialHook();
- } else {
- $this->logPull(
- pht(
- "Repository '%s' is hosted, so Phabricator does not pull ".
- "updates for it.",
- $callsign));
- }
- } else {
+ if (!$repository->isHosted()) {
$this->logPull(
pht(
"Updating the working copy for repository '%s'.",
$callsign));
if ($is_git) {
$this->executeGitUpdate();
- } else {
+ } else if ($is_hg) {
$this->executeMercurialUpdate();
}
}
}
+
+ if ($repository->isHosted()) {
+ if ($is_git) {
+ $this->installGitHook();
+ } else if ($is_svn) {
+ $this->installSubversionHook();
+ } else if ($is_hg) {
+ $this->installMercurialHook();
+ }
+ }
+
} catch (Exception $ex) {
$this->abortPull(
pht('Pull of "%s" failed: %s', $callsign, $ex->getMessage()),

File Metadata

Mime Type
text/x-diff
Storage Engine
amazon-s3
Storage Format
Raw Data
Storage Handle
phabricator/2k/zu/gup2ngr2dwoaz4rc
Default Alt Text
D7818.diff (1 KB)

Event Timeline