diff options
author | Jay Doane <jaydoane@apache.org> | 2019-12-17 23:49:10 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-17 23:49:10 -0800 |
commit | 26221fab017bf07c58960ed214adb232d3f12b2c (patch) | |
tree | 680dce808bd23f6b139a655982b39f6fa85af05b | |
parent | 98c474598cef1e90b0892e53be1ce324959a13f8 (diff) | |
parent | c5d24d8417503ff81a0670d41524799b4ed38e5e (diff) | |
download | couchdb-26221fab017bf07c58960ed214adb232d3f12b2c.tar.gz |
Merge pull request #2359 from cloudant/git-dir-warning
Warn about orphan .git directories
-rwxr-xr-x | configure | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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." |