Skip to content
Snippets Groups Projects
Commit b09848cd authored by Vasilis Tsiligiannis's avatar Vasilis Tsiligiannis
Browse files

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: default avatarVasilis Tsiligiannis <acinonyx@openwrt.gr>

SVN-Revision: 49165
parent d5551207
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment