aboutsummaryrefslogtreecommitdiffstats
path: root/layerindex/update.py
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2014-05-24 17:23:56 +0100
committerPaul Eggleton <paul.eggleton@linux.intel.com>2014-05-24 17:23:56 +0100
commitf0b517796fd3c7cebfdd1be203c3cb13d0a44493 (patch)
tree26f114ca3d88b2abc204f82fdf4304690b727b0e /layerindex/update.py
parentbbbf5e99399c4c3f5abd85cd203b9863e5aa305c (diff)
downloadopenembedded-core-contrib-f0b517796fd3c7cebfdd1be203c3cb13d0a44493.tar.gz
openembedded-core-contrib-f0b517796fd3c7cebfdd1be203c3cb13d0a44493.tar.bz2
openembedded-core-contrib-f0b517796fd3c7cebfdd1be203c3cb13d0a44493.zip
update.py: use actual branch when getting last revision
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Diffstat (limited to 'layerindex/update.py')
-rwxr-xr-xlayerindex/update.py2
1 files changed, 1 insertions, 1 deletions
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