summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2018-12-04 16:30:17 +0900
committerTristan Van Berkom <tristan.van.berkom@gmail.com>2019-08-04 18:09:15 +0000
commit083e6a09483871ce9bd35374915dd470d3e479e4 (patch)
tree8cd32544c163d62996043240e801346a24b01f6d
parent9dfcabd3e33f0831ce2be95813795cede3d2b619 (diff)
downloadbuildstream-tristan/bst-1/misc-cleanup.tar.gz
git source plugin: Fixing documentation linking and typotristan/bst-1/misc-cleanup
Fixes the configurable warning part of this to properly link to the project.conf documentation describing what configurable warnings actually are. Also fix the plugin raise the actual configurable warning which it advertizes that it raises; which is 'inconsistent-submodule', not 'inconsistent-submodules'.
-rw-r--r--buildstream/plugins/sources/git.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/buildstream/plugins/sources/git.py b/buildstream/plugins/sources/git.py
index 29a148431..495246423 100644
--- a/buildstream/plugins/sources/git.py
+++ b/buildstream/plugins/sources/git.py
@@ -76,7 +76,7 @@ git - stage files from a git repository
**Configurable Warnings:**
-This plugin provides the following configurable warnings:
+This plugin provides the following :ref:`configurable warnings <configurable_warnings>`:
- ``git:inconsistent-submodule`` - A submodule present in the git repository's .gitmodules was never
added with `git submodule add`.
@@ -95,9 +95,10 @@ This plugin provides the following configurable warnings:
The ``git:invalid-submodule`` warning is available since :ref:`format version 20 <project_format_version>`
-This plugin also utilises the following configurable core plugin warnings:
+This plugin also utilises the following configurable :class:`core warnings <buildstream.types.CoreWarnings>`:
-- 'ref-not-in-track' - The provided ref was not found in the provided track in the element's git repository.
+- :attr:`ref-not-in-track <buildstream.types.CoreWarnings.REF_NOT_IN_TRACK>` - The provided ref was not
+ found in the provided track in the element's git repository.
"""
import os