Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14839835
D7818.diff
No One
Temporary
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
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
Details
Attached
Mime Type
text/plain
Expires
Sun, Feb 2, 1:19 AM (21 h, 9 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7083335
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