diff options
author | Ben Brown <ben.brown@codethink.co.uk> | 2017-08-16 16:56:39 +0100 |
---|---|---|
committer | Ben Brown <ben.brown@codethink.co.uk> | 2017-08-17 10:13:07 +0100 |
commit | bd721e8b1c83dd7a1f8c674e164b076251053153 (patch) | |
tree | 91104e1daaffc4fc7a492c608e971653e4de42bc | |
parent | eae3581ef54d266b5725b55c7ef68dd966e78822 (diff) | |
download | ybd-bd721e8b1c83dd7a1f8c674e164b076251053153.tar.gz |
Explicitly pass 'sha' to _checkout() if it exists
If definition contains sha, it should override ref.
-rw-r--r-- | ybd/repos.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ybd/repos.py b/ybd/repos.py index 0a24b6b..f3b1872 100644 --- a/ybd/repos.py +++ b/ybd/repos.py @@ -197,7 +197,7 @@ def update_mirror(name, repo, gitdir): def checkout(dn): - _checkout(dn['name'], dn['repo'], dn['ref'], dn['checkout']) + _checkout(dn['name'], dn['repo'], dn.get('sha', dn['ref']), dn['checkout']) with app.chdir(dn['checkout']): if os.path.exists('.gitmodules') or dn.get('submodules'): |