]> code.ossystems Code Review - openembedded-core.git/commitdiff
scripts/combo-layer: keep carriage returns at the end of lines
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Mon, 25 Jul 2011 08:08:10 +0000 (09:08 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 27 Jul 2011 10:54:49 +0000 (11:54 +0100)
Use --keep-cr option to "git am" or otherwise we lose carriage returns
which can be important for patches against files that use CRs.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
scripts/combo-layer

index 84cc48f6ff846ec25233a7ce4a3abf4763b5b353..d1291751fa868d5bcf84fdeb5cbd4901e66b0fe8 100755 (executable)
@@ -254,7 +254,7 @@ def action_apply_patch(conf, args):
         for line in open(repo['patchlist']):
             patchfile = line.split()[0]
             lastrev = line.split()[1]
-            cmd = "git am -s -p1 %s" % patchfile
+            cmd = "git am --keep-cr -s -p1 %s" % patchfile
             logger.info("Apply %s" % patchfile )
             try:
                 runcmd(cmd)