Skip to content
Snippets Groups Projects
Commit 205c27d8 authored by Tristan Van Berkom's avatar Tristan Van Berkom
Browse files

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.
parent e5c0f067
No related branches found
No related tags found
Loading
Pipeline #39155871 passed
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment