Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F92678
D7818.diff
All Users
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D7818.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D7818: Make `repository pull` install hooks the first time
Attached
Detach File
Event Timeline
Log In to Comment