repo: unfork our launcher

Since we have a wrapper around the launcher, we can move the two
minor changes to that:
(1) The shebang is already ignored as we run the script via
    sys.executable which is the active version of Python.
(2) The custom repo url can be set via an environment variable.

Change-Id: If9f940086ab87a6816e6a3f5c789ccb5702847c4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/4697333
Commit-Queue: Tim Bain <tbain@google.com>
Auto-Submit: Mike Frysinger <vapier@chromium.org>
Reviewed-by: Tim Bain <tbain@google.com>
changes/33/4697333/2
Mike Frysinger 2 years ago committed by LUCI CQ
parent 2c384dbd87
commit d6b52e67c9

@ -48,6 +48,9 @@ def main(argv):
if argv and argv[0] == 'sync': if argv and argv[0] == 'sync':
_UpdateDepotTools() _UpdateDepotTools()
# Set the default to our fork.
os.environ["REPO_URL"] = "https://chromium.googlesource.com/external/repo"
os.execv(sys.executable, [sys.executable, str(REPO)] + argv) os.execv(sys.executable, [sys.executable, str(REPO)] + argv)

@ -1,4 +1,4 @@
#!/usr/bin/env python3 #!/usr/bin/env python
# -*- coding:utf-8 -*- # -*- coding:utf-8 -*-
# #
# Copyright (C) 2008 The Android Open Source Project # Copyright (C) 2008 The Android Open Source Project
@ -141,7 +141,7 @@ if __name__ == '__main__':
# #
REPO_URL = os.environ.get('REPO_URL', None) REPO_URL = os.environ.get('REPO_URL', None)
if not REPO_URL: if not REPO_URL:
REPO_URL = 'https://chromium.googlesource.com/external/repo' REPO_URL = 'https://gerrit.googlesource.com/git-repo'
REPO_REV = os.environ.get('REPO_REV') REPO_REV = os.environ.get('REPO_REV')
if not REPO_REV: if not REPO_REV:
REPO_REV = 'stable' REPO_REV = 'stable'

Loading…
Cancel
Save