shithub: libvpx

Download patch

ref: 94ec6290f8769813ff60afc2e21d5dccb9c0f01c
parent: 512b67f0239dc31cbf7b0b5b68227924b1728bde
parent: 880ee94a94684b860fd330a2e97eadb3aaab4897
author: Johann Koenig <johannkoenig@chromium.org>
date: Fri May 6 18:18:16 EDT 2016

Merge "Fix for version.sh when libvpx is checked out as git submodule"

--- a/build/make/version.sh
+++ b/build/make/version.sh
@@ -24,8 +24,9 @@
 id=${3:-VERSION_STRING}
 
 git_version_id=""
-if [ -d "${source_path}/.git" ]; then
+if [ -e "${source_path}/.git" ]; then
     # Source Path is a git working copy. Check for local modifications.
+    # Note that git submodules may have a file as .git, not a directory.
     export GIT_DIR="${source_path}/.git"
     git_version_id=`git describe --match=v[0-9]* 2>/dev/null`
 fi