Rush has submitted this change and it was merged.
Change subject: Phabricator: Fetch all references in Git
......................................................................
Phabricator: Fetch all references in Git
This causes refs/changes/* and refs/meta/* to be fetched by
phabricator when fetching from gerrit, so that all the gerrit
changes will be replicated on phabricator's mirrored repos.
Change-Id: I1a4c2cb727d3d8fbd586709ffd8a47857e60dfcd
---
A modules/phabricator/files/system.gitconfig
M modules/phabricator/manifests/vcs.pp
2 files changed, 9 insertions(+), 0 deletions(-)
Approvals:
Rush: Verified; Looks good to me, approved
jenkins-bot: Verified
diff --git a/modules/phabricator/files/system.gitconfig
b/modules/phabricator/files/system.gitconfig
new file mode 100644
index 0000000..a1bd79f
--- /dev/null
+++ b/modules/phabricator/files/system.gitconfig
@@ -0,0 +1,3 @@
+[remote "origin"]
+ fetch = +refs/changes/*:refs/changes/*
+ fetch = +refs/meta/*:refs/meta/*
diff --git a/modules/phabricator/manifests/vcs.pp
b/modules/phabricator/manifests/vcs.pp
index cb147a6..d444484 100644
--- a/modules/phabricator/manifests/vcs.pp
+++ b/modules/phabricator/manifests/vcs.pp
@@ -45,6 +45,12 @@
require => Package['git'],
}
+ # Configure all git repositories we host
+ file { '/etc/gitconfig':
+ source => 'puppet:///modules/phabricator/system.gitconfig',
+ require => Package['git-core'],
+ }
+
file { $ssh_hook_path:
content => template('phabricator/phabricator-ssh-hook.sh.erb'),
mode => '0755',
--
To view, visit https://gerrit.wikimedia.org/r/227489
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I1a4c2cb727d3d8fbd586709ffd8a47857e60dfcd
Gerrit-PatchSet: 7
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Chad <[email protected]>
Gerrit-Reviewer: 20after4 <[email protected]>
Gerrit-Reviewer: Chad <[email protected]>
Gerrit-Reviewer: Rush <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits