[gnome-continuous-yocto/gnomeostree-3.28-rocko: 3079/8267]	combo-layer: handle ambiguous git arguments
- From: Emmanuele Bassi <ebassi src gnome org>
 
- To: commits-list gnome org
 
- Cc: 
 
- Subject: [gnome-continuous-yocto/gnomeostree-3.28-rocko: 3079/8267]	combo-layer: handle ambiguous git arguments
 
- Date: Sun, 17 Dec 2017 00:07:48 +0000 (UTC)
 
commit e02f0f1cb12a1a6e473889bd7e6ddf8b68939f9d
Author: Olaf Mandel <o mandel menlosystems com>
Date:   Mon Oct 17 08:16:28 2016 +0000
    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>
 scripts/combo-layer |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/scripts/combo-layer b/scripts/combo-layer
index 4a210fb..089b65f 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',
                 merge.append(name)
                 # Root all commits which have no parent in the common
                 # ancestor in the new repository.
-                for start in runcmd('git log --pretty=format:%%H --max-parents=0 %s' % name).split('\n'):
+                for start in runcmd('git log --pretty=format:%%H --max-parents=0 %s --' % name).split('\n'):
                     runcmd('git replace --graft %s %s' % (start, startrev))
             try:
                 runcmd(merge)
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]