diff options
author | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2018-12-04 18:02:31 +0900 |
---|---|---|
committer | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2018-12-06 16:35:59 +0900 |
commit | 205c27d8b9b248beb4c5631b647143805a2dc317 (patch) | |
tree | 80d80bd6811b3755c8f52e8d4279d59a5ee523d3 | |
parent | e5c0f067bd114c44d58dc3dcbf251fc69bb31d43 (diff) | |
download | buildstream-205c27d8b9b248beb4c5631b647143805a2dc317.tar.gz |
git source plugin: Rename symbol for consistency and readability
Change 'INCONSISTENT_SUBMODULE' for 'WARN_INCONSISTENT_SUBMODULE' to
make things a bit more readable and comprehensive.
-rw-r--r-- | buildstream/plugins/sources/git.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/buildstream/plugins/sources/git.py b/buildstream/plugins/sources/git.py index f404a8528..7496f1f13 100644 --- a/buildstream/plugins/sources/git.py +++ b/buildstream/plugins/sources/git.py @@ -157,7 +157,7 @@ from buildstream.utils import move_atomic, DirectoryExistsError GIT_MODULES = '.gitmodules' # Warnings -INCONSISTENT_SUBMODULE = "inconsistent-submodule" +WARN_INCONSISTENT_SUBMODULE = "inconsistent-submodule" # Because of handling of submodules, we maintain a GitMirror @@ -408,7 +408,8 @@ class GitMirror(SourceFetcher): "underlying git repository with `git submodule add`." self.source.warn("{}: Ignoring inconsistent submodule '{}'" - .format(self.source, submodule), detail=detail, warning_token=INCONSISTENT_SUBMODULE) + .format(self.source, submodule), detail=detail, + warning_token=WARN_INCONSISTENT_SUBMODULE) return None |