• Jason Hrycay's avatar
    setlocalversion: only use first line of git show-ref · b84385ff
    Jason Hrycay authored
    
    
    When executing the code "git show-ref -s --abbrev --tags $tag" and the
    output spans multiple lines, it results in generation of a directory
    in the kernel objects causing build failure.
    
    Ex:
    
    $ git show-ref -s --abbrev --tags LNX.LA.3.2-00520-8x26
    04163f5
    04163f5
    
    Results in:
    
    "ln: target `04163f5-00951-g2403ab9/source' is not a directory"
    
    Fix this by pruning anything after the first line of output.
    
    Change-Id: Iebe1e6fa88951ec0f1dab383adeb6faa72872295
    Signed-off-by: default avatarJason Hrycay <jason.hrycay@motorola.com>
    b84385ff
setlocalversion 4.53 KB