summaryrefslogtreecommitdiffstats
path: root/git_config.py
diff options
context:
space:
mode:
authorSebastian Schuberth <sschuberth@gmail.com>2018-07-13 10:25:52 +0200
committerSebastian Schuberth <sschuberth@gmail.com>2018-07-13 17:21:47 +0200
commit993dcacd17c6ea0d9c366c1bfc3e9579dfa19b44 (patch)
tree245ef01845075e0ac6831f6ead374834f299939a /git_config.py
parentb10f0e5b9a9ba6d8e9a27b3a81d2fc1d65d9810d (diff)
downloadgit-repo-993dcacd17c6ea0d9c366c1bfc3e9579dfa19b44.tar.gz
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
Diffstat (limited to 'git_config.py')
0 files changed, 0 insertions, 0 deletions