Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15554001
D7771.id17574.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
857 B
Referenced Files
None
Subscribers
None
D7771.id17574.diff
View Options
Index: src/applications/harbormaster/storage/build/HarbormasterBuild.php
===================================================================
--- src/applications/harbormaster/storage/build/HarbormasterBuild.php
+++ src/applications/harbormaster/storage/build/HarbormasterBuild.php
@@ -183,9 +183,12 @@
$repo = $object->getRepository();
}
- $results['repository.callsign'] = $repo->getCallsign();
- $results['repository.vcs'] = $repo->getVersionControlSystem();
- $results['repository.uri'] = $repo->getPublicRemoteURI();
+ if ($repo) {
+ $results['repository.callsign'] = $repo->getCallsign();
+ $results['repository.vcs'] = $repo->getVersionControlSystem();
+ $results['repository.uri'] = $repo->getPublicRemoteURI();
+ }
+
$results['step.timestamp'] = time();
$results['build.id'] = $this->getID();
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Apr 29, 4:54 AM (1 w, 2 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7589407
Default Alt Text
D7771.id17574.diff (857 B)
Attached To
Mode
D7771: Fix an issue in Harbormaster when a buildable has no repository
Attached
Detach File
Event Timeline
Log In to Comment