summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Doane <jaydoane@apache.org>2019-12-17 23:49:10 -0800
committerGitHub <noreply@github.com>2019-12-17 23:49:10 -0800
commit26221fab017bf07c58960ed214adb232d3f12b2c (patch)
tree680dce808bd23f6b139a655982b39f6fa85af05b
parent98c474598cef1e90b0892e53be1ce324959a13f8 (diff)
parentc5d24d8417503ff81a0670d41524799b4ed38e5e (diff)
downloadcouchdb-26221fab017bf07c58960ed214adb232d3f12b2c.tar.gz
Merge pull request #2359 from cloudant/git-dir-warning
Warn about orphan .git directories
-rwxr-xr-xconfigure8
1 files changed, 8 insertions, 0 deletions
diff --git a/configure b/configure
index bcd761903..defe145d0 100755
--- a/configure
+++ b/configure
@@ -237,4 +237,12 @@ if [ -d .git -a $SKIP_DEPS -ne 1 ]; then
${REBAR} get-deps update-deps
fi
+# External repos frequently become integrated with the primary repo,
+# resulting in obsolete .git directories, and possible confusion.
+# It is usually a good idea to delete these .git directories.
+for path in $(find src -name .git -type d); do
+ git ls-files --error-unmatch $(dirname $path) > /dev/null 2>&1 && \
+ echo "WARNING unexpected .git directory $path"
+done
+
echo "You have configured Apache CouchDB, time to relax. Relax."