Commit 96eee3d5 authored by Matthias Putz's avatar Matthias Putz

Hide deprecation warning with env var for jenkins plugin to work properly

parent 2ef2df86
......@@ -530,7 +530,9 @@ def _Main(argv):
if __name__ == '__main__':
print('!! NOT MAINTAINED ANYMORE !!')
disableWarningKey = 'REPO_DISABLE_DEPRECATION_WARNING'
if not disableWarningKey in os.environ or os.environ[disableWarningKey] != '1':
print('!!! NOT MAINTAINED ANYMORE !!!')
print('Please use the up-to-date version on the stable branch: https://github.com/esrlabs/git-repo/tree/stable')
print('')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment