scripts/getver.sh: Use 'git-rev-parse' to detect if tree lies in Git repository
authoracinonyx <acinonyx@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Wed, 13 Apr 2016 20:52:26 +0000 (20:52 +0000)
committeracinonyx <acinonyx@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Wed, 13 Apr 2016 20:52:26 +0000 (20:52 +0000)
commitab71e257cdf9771acd87125512e92a843e3844bc
treefd226d97118d1fa230f66c4e7deb1fde2a3159e9
parent64a8b608662f47a299daf75936b52791b1b7ef01
scripts/getver.sh: Use 'git-rev-parse' to detect if tree lies in Git repository

Path to the Git repository directory can be overriden by using the '$GIT_DIR'
environment variable. This patch improves detection of Git repository by using
'git-rev-parse', which respects '$GIT_DIR' environment variable, instead of just
checking the existence of '.git' directory.

Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49165 3c298f89-4303-0410-b956-a3cf2f4a3e73
scripts/getver.sh