Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F13978731
D16134.id38812.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
D16134.id38812.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Oct 20 2024, 12:42 AM (4 w, 2 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6720883
Default Alt Text
D16134.id38812.diff (1 KB)
Attached To
Mode
D16134: Don't track "phabricator/" staging area tags
Attached
Detach File
Event Timeline
Log In to Comment