Page MenuHomePhabricator

D16134.id.diff
No OneTemporary

D16134.id.diff

diff --git a/src/applications/diffusion/data/DiffusionRepositoryRef.php b/src/applications/diffusion/data/DiffusionRepositoryRef.php
--- a/src/applications/diffusion/data/DiffusionRepositoryRef.php
+++ b/src/applications/diffusion/data/DiffusionRepositoryRef.php
@@ -51,6 +51,11 @@
return ($this->getRefType() === $type_branch);
}
+ public function isTag() {
+ $type_tag = PhabricatorRepositoryRefCursor::TYPE_TAG;
+ return ($this->getRefType() === $type_tag);
+ }
+
/* -( Serialization )------------------------------------------------------ */
diff --git a/src/applications/repository/storage/PhabricatorRepository.php b/src/applications/repository/storage/PhabricatorRepository.php
--- a/src/applications/repository/storage/PhabricatorRepository.php
+++ b/src/applications/repository/storage/PhabricatorRepository.php
@@ -911,6 +911,13 @@
}
public function shouldTrackRef(DiffusionRepositoryRef $ref) {
+ // At least for now, don't track the staging area tags.
+ if ($ref->isTag()) {
+ if (preg_match('(^phabricator/)', $ref->getShortName())) {
+ return false;
+ }
+ }
+
if (!$ref->isBranch()) {
return true;
}

File Metadata

Mime Type
text/plain
Expires
Oct 17 2024, 5:56 AM (4 w, 5 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6720883
Default Alt Text
D16134.id.diff (1 KB)

Event Timeline