summaryrefslogtreecommitdiff
path: root/morphlib/sourceresolver_tests.py
diff options
context:
space:
mode:
authorSam Thursfield <sam.thursfield@codethink.co.uk>2015-02-20 10:37:30 +0000
committerSam Thursfield <sam.thursfield@codethink.co.uk>2015-02-20 13:48:41 +0000
commit0b0f6631fc410b281bca45d30bf6f41105b0b0f8 (patch)
tree2582066a4f1eaee84e001ec2c957e51016b7ba91 /morphlib/sourceresolver_tests.py
parentafcb1146a2ed1a09244266f4e302ee78d8625b92 (diff)
downloadmorph-0b0f6631fc410b281bca45d30bf6f41105b0b0f8.tar.gz
sourceresolver: Fix InvalidRefError when local git cache is out of date
Code in sourceresolver.py assumed that resolve_ref() would be called for the chunk repo before get_morphology() was called, so the repo would always be up to date. This wasn't actually true. If your local repo cache was out of date, you might see the following sort of error: InvalidRefError: Git directory /src/cache/gits/git___git_baserock_org_delta_usbutils has no commit at ref c37f146eb2c6642c600f1b025a6d56996b0697ff^{tree}.
Diffstat (limited to 'morphlib/sourceresolver_tests.py')
0 files changed, 0 insertions, 0 deletions