summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Smith (work) <jhs@apache.org>2013-01-30 12:17:06 +0000
committerJason Smith (work) <jhs@apache.org>2013-01-30 12:24:19 +0000
commit4c825efa5a36c88c8d7df1ca8ba1b2fb8baa290d (patch)
tree01e812c1ae61511989475f984617ba2bda8f032d
parent734ca24858c1fdcaa9d998f19bbf7f3e35817f64 (diff)
downloadcouchdb-4c825efa5a36c88c8d7df1ca8ba1b2fb8baa290d.tar.gz
Support any type of Git checkout (cloned, or submodule)
-rwxr-xr-xbootstrap4
1 files changed, 2 insertions, 2 deletions
diff --git a/bootstrap b/bootstrap
index 1e5bdf1e8..021275bad 100755
--- a/bootstrap
+++ b/bootstrap
@@ -32,7 +32,7 @@ get () {
}
if test -z "$REVISION"; then
- if test -d .git; then
+ if test -e .git; then
REVISION=`git describe --always`-git
fi
fi
@@ -43,7 +43,7 @@ else
sed "s/%release%/$REVISION/" < acinclude.m4.in > acinclude.m4
fi
-if test -d .git; then
+if test -e .git; then
OS=`uname -s`
case "$OS" in
Linux|CYGWIN*) # GNU sed