From: Franck Bui-Huu Date: Mon, 2 Dec 2013 15:34:29 +0000 (+0100) Subject: Fix detectition of kernel git repository in setlocalversion script [take #2] X-Git-Tag: v3.14-rc1~41^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7593e0902bc41392315316f1b5f4ba15feead842;p=pandora-kernel.git Fix detectition of kernel git repository in setlocalversion script [take #2] setlocalversion script was testing the presence of .git directory in order to find out if git is used as SCM to track the current kernel project. However in some cases, .git is not a directory but can be a file: when the kernel is a git submodule part of a git super project for example. This patch just fixes this by using 'git rev-parse --show-cdup' to check that the current directory is the kernel git topdir. This has the advantage to not test and rely on git internal infrastructure directly. Signed-off-by: Franck Bui-Huu Signed-off-by: Michal Marek --- Reading git-diff-tree failed