Support any type of Git checkout (cloned, or submodule)
Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/4c825efa Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/4c825efa Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/4c825efa Branch: refs/heads/console_log Commit: 4c825efa5a36c88c8d7df1ca8ba1b2fb8baa290d Parents: 734ca24 Author: Jason Smith (work) <[email protected]> Authored: Wed Jan 30 12:17:06 2013 +0000 Committer: Jason Smith (work) <[email protected]> Committed: Wed Jan 30 12:24:19 2013 +0000 ---------------------------------------------------------------------- bootstrap | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/couchdb/blob/4c825efa/bootstrap ---------------------------------------------------------------------- diff --git a/bootstrap b/bootstrap index 1e5bdf1..021275b 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
