commit | 993dcacd17c6ea0d9c366c1bfc3e9579dfa19b44 | [log] [tgz] |
---|---|---|
author | Sebastian Schuberth <sschuberth@gmail.com> | Fri Jul 13 10:25:52 2018 +0200 |
committer | Sebastian Schuberth <sschuberth@gmail.com> | Fri Jul 13 17:21:47 2018 +0200 |
tree | 245ef01845075e0ac6831f6ead374834f299939a | |
parent | b10f0e5b9a9ba6d8e9a27b3a81d2fc1d65d9810d [diff] |
Fix the initial existence check for "repo" Commit 27226e742d7e1a3d371531c19a3fdd91a4f9ab4a introduced a warning if "repo" is not part of the bootstrapped REPO_URL. However, that check was done too early, directly after the call to _Clone. As the _Clone function does not actually clone but it only initializes and fetches, the check needs to be moved to after the call to _Checkout. To reproduce, call repo init --no-clone-bundle --repo-branch=master -u https://android.googlesource.com/platform/manifest which will currently always show the (bogus) warning message. With this fix, the warning will only be shown if "repo" indeed does not exist. While at it, also slightly improve the code by using os.path.join(). Change-Id: Ied89e24231addabab6075005065748df1ffa74c4
Repo is a tool built on top of Git. Repo helps manage many Git repositories, does the uploads to revision control systems, and automates parts of the development workflow. Repo is not meant to replace Git, only to make it easier to work with Git. The repo command is an executable Python script that you can put anywhere in your path.