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,9 +530,11 @@ def _Main(argv): ...@@ -530,9 +530,11 @@ def _Main(argv):
if __name__ == '__main__': if __name__ == '__main__':
print('!! NOT MAINTAINED ANYMORE !!') disableWarningKey = 'REPO_DISABLE_DEPRECATION_WARNING'
print('Please use the up-to-date version on the stable branch: https://github.com/esrlabs/git-repo/tree/stable') if not disableWarningKey in os.environ or os.environ[disableWarningKey] != '1':
print('') 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('')
result = _Main(sys.argv[1:]) result = _Main(sys.argv[1:])
sys.exit(result) sys.exit(result)
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