summaryrefslogtreecommitdiffstats
path: root/layerindex/update_layer.py
diff options
context:
space:
mode:
Diffstat (limited to 'layerindex/update_layer.py')
-rw-r--r--layerindex/update_layer.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/layerindex/update_layer.py b/layerindex/update_layer.py
index 81b730a80a..d941ae646f 100644
--- a/layerindex/update_layer.py
+++ b/layerindex/update_layer.py
@@ -362,10 +362,9 @@ def main():
# Collect repo info
repo = git.Repo(repodir)
assert repo.bare == False
+ topcommit = repo.commit('origin/%s' % branchname)
if options.nocheckout:
topcommit = repo.commit('HEAD')
- else:
- topcommit = repo.commit('origin/%s' % branchname)
tinfoil = None
tempdir = None