mirror of
git://git.yoctoproject.org/layerindex-web.git
synced 2025-07-19 12:49:01 +02:00
update.py: use actual branch when getting last revision
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
This commit is contained in:
parent
bbbf5e9939
commit
f0b517796f
|
@ -305,7 +305,7 @@ def main():
|
|||
if layerbranch.vcs_subdir and not options.nocheckout:
|
||||
# Find latest commit in subdirectory
|
||||
# A bit odd to do it this way but apparently there's no other way in the GitPython API
|
||||
for commit in repo.iter_commits('origin/%s' % options.branch, paths=layerbranch.vcs_subdir):
|
||||
for commit in repo.iter_commits('origin/%s' % branchname, paths=layerbranch.vcs_subdir):
|
||||
topcommit = commit
|
||||
break
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user