diff options
Diffstat (limited to 'scripts/combo-layer')
-rwxr-xr-x | scripts/combo-layer | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/combo-layer b/scripts/combo-layer index 448fe71cd9..330faca389 100755 --- a/scripts/combo-layer +++ b/scripts/combo-layer | |||
@@ -191,7 +191,7 @@ def action_init(conf, args): | |||
191 | branch = repo.get('branch', "master") | 191 | branch = repo.get('branch', "master") |
192 | file_filter = repo.get('file_filter', "") | 192 | file_filter = repo.get('file_filter', "") |
193 | runcmd("git archive %s | tar -x -C %s %s" % (branch, extract_dir, file_filter), ldir) | 193 | runcmd("git archive %s | tar -x -C %s %s" % (branch, extract_dir, file_filter), ldir) |
194 | lastrev = runcmd("git rev-parse HEAD", ldir).strip() | 194 | lastrev = runcmd("git rev-parse %s" % branch, ldir).strip() |
195 | conf.update(name, "last_revision", lastrev, initmode=True) | 195 | conf.update(name, "last_revision", lastrev, initmode=True) |
196 | runcmd("git add .") | 196 | runcmd("git add .") |
197 | if conf.localconffile: | 197 | if conf.localconffile: |
@@ -475,7 +475,8 @@ def apply_patchlist(conf, repos): | |||
475 | else: | 475 | else: |
476 | logger.info("No patches to apply from %s" % name) | 476 | logger.info("No patches to apply from %s" % name) |
477 | ldir = conf.repos[name]['local_repo_dir'] | 477 | ldir = conf.repos[name]['local_repo_dir'] |
478 | lastrev = runcmd("git rev-parse HEAD", ldir).strip() | 478 | branch = conf.repos[name].get('branch', "master") |
479 | lastrev = runcmd("git rev-parse %s" % branch, ldir).strip() | ||
479 | 480 | ||
480 | if lastrev != repo['last_revision']: | 481 | if lastrev != repo['last_revision']: |
481 | conf.update(name, "last_revision", lastrev) | 482 | conf.update(name, "last_revision", lastrev) |