Page MenuHomePhabricator

D7818.diff
No OneTemporary

D7818.diff

Index: src/applications/repository/engine/PhabricatorRepositoryPullEngine.php
===================================================================
--- src/applications/repository/engine/PhabricatorRepositoryPullEngine.php
+++ 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/plain
Expires
Sun, May 12, 2:30 AM (1 w, 4 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6287185
Default Alt Text
D7818.diff (1 KB)

Event Timeline