From f0b517796fd3c7cebfdd1be203c3cb13d0a44493 Mon Sep 17 00:00:00 2001 From: Paul Eggleton Date: Sat, 24 May 2014 17:23:56 +0100 Subject: update.py: use actual branch when getting last revision Signed-off-by: Paul Eggleton --- layerindex/update.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'layerindex/update.py') diff --git a/layerindex/update.py b/layerindex/update.py index 90e1e50c76..5670d6272b 100755 --- a/layerindex/update.py +++ b/layerindex/update.py @@ -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 -- cgit 1.2.3-korg