repo_utils: allow fetching a specific sha1 to per-commit directories
authorJosh Durgin <jdurgin@redhat.com>
Sun, 17 Jan 2021 02:21:02 +0000 (21:21 -0500)
committerJosh Durgin <jdurgin@redhat.com>
Tue, 19 Jan 2021 06:47:37 +0000 (01:47 -0500)
commit125e83298dd7a8c1dfb27fae81f842471636b80d
treefe1c5f9a16b85cad66fa044cf2f2f492f4f3d211
parent6c7f93b5756722918db465a14eebcedce3c8f711
repo_utils: allow fetching a specific sha1 to per-commit directories

Using a checkout of a single branch used by potentially many
workers/teuthology processes can result in errors when one job
updates the local branch while another job is reading it.

This causes issues particularly easily when using non-master
teuthology branches, and with the teuthology-dispatcher.

This also allows us to guarantee we're using the same
version across an entire run, even if e.g. the master
qa suite is updated between jobs.

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
teuthology/repo_utils.py