diff options
author | Olaf Mandel <o.mandel@menlosystems.com> | 2016-10-17 08:16:28 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-10-28 16:15:18 +0100 |
commit | e02f0f1cb12a1a6e473889bd7e6ddf8b68939f9d (patch) | |
tree | 513b99142d9b36d4fcdf91816d1f90321d3e4338 /scripts/combo-layer | |
parent | 050b8969ab5933a071f5d047cea7ab730a2753cf (diff) | |
download | poky-e02f0f1cb12a1a6e473889bd7e6ddf8b68939f9d.tar.gz |
combo-layer: handle ambiguous git arguments
If a branch/src-repository has the same name as a file/directory, git
since 1.4.0(?) gives an error like the one below:
ambiguous argument 'bitbake': both revision and filename
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
Add two dashes to make the intent clear.
(From OE-Core rev: a84ec3ac15a59f72fcb46d97942009c8e459b5d0)
Signed-off-by: Olaf Mandel <o.mandel@menlosystems.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/combo-layer')
-rwxr-xr-x | scripts/combo-layer | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/combo-layer b/scripts/combo-layer index 4a210fba63..089b65f97e 100755 --- a/scripts/combo-layer +++ b/scripts/combo-layer | |||
@@ -426,7 +426,7 @@ file_exclude = %s''' % (name, file_filter or '<empty>', repo.get('file_exclude', | |||
426 | merge.append(name) | 426 | merge.append(name) |
427 | # Root all commits which have no parent in the common | 427 | # Root all commits which have no parent in the common |
428 | # ancestor in the new repository. | 428 | # ancestor in the new repository. |
429 | for start in runcmd('git log --pretty=format:%%H --max-parents=0 %s' % name).split('\n'): | 429 | for start in runcmd('git log --pretty=format:%%H --max-parents=0 %s --' % name).split('\n'): |
430 | runcmd('git replace --graft %s %s' % (start, startrev)) | 430 | runcmd('git replace --graft %s %s' % (start, startrev)) |
431 | try: | 431 | try: |
432 | runcmd(merge) | 432 | runcmd(merge) |