commit | 66c1a45df054485a8ea5c56c6a771c21ddc98b49 | [log] [tgz] |
---|---|---|
author | Michael Moss <mmoss@google.com> | Fri May 24 21:48:35 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Fri May 24 21:48:35 2019 |
tree | a6f51d54d32119272532f575329ab7212a4130ac | |
parent | 6adee02725953521c00622c3122651d67cea173b [diff] |
Fix error when fetching new repo commits. This can be reproduced by running recipe_bundler with a clean workdir: recipe_bundler bundle -workdir /tmp/workdir -r example.com/repo/name=FETCH_HEAD,refs/heads/master which fails the initial example.com/repo/name fetch with: fatal: Refusing to fetch into current branch refs/heads/master of non-bare repository This is a problem here because refspec=refs/heads/master, and that's the default branch of a newly initialized checkout, but it could have the same issue even for other refspecs if it reuses an existing checkout where a previous run left "current branch" == refspec. R=iannucci@google.com, tandrii@google.com Change-Id: Ifd39cbe304573dd84726f3b797f018b146e3cb5e Reviewed-on: https://chromium-review.googlesource.com/c/infra/infra/+/1629307 Reviewed-by: Robbie Iannucci <iannucci@chromium.org> Commit-Queue: Michael Moss <mmoss@chromium.org> Cr-Commit-Position: refs/heads/master@{#23225}
Welcome to the Chrome Infra repository!
Wondering where to start? Check out General Chrome Infrastructure documentation. In particular, to check out this repo and the rest of the infrastructure code, follow the instructions here. The rest of this page is specific to this repo.
sys.path
modifications.from infra.path_hacks.common import <stg>
is actually getting <stg>
from build/scripts/common.git push origin <updated hash>:deployed
git push
commandIf you've added a new module, integrate your tests with test.py:
Double-check that your tests are getting picked up when you want them to be: ./test.py test <path-to-package>
.
Tests still not getting picked up by test.py? Double-check to make sure you have init.py files in each directory of your module so Python recognizes it as a package.