Warn about orphan .git directories#2359
Conversation
d9bd85e to
1955c3e
Compare
|
I'm on board with this other than making it conditional. I'd remove the toggle and just run it regardless as it seems like good hygiene for those of us that skip around between major versions fairly often. Though that also assumes that its not super expensive though it doesn't look like it would be. |
|
@davisp I originally did write it without the conditional, but became concerned about forcing a potentially expensive |
|
Windows uses the |
|
Great, let's make it non-optional since it's simpler. |
davisp
left a comment
There was a problem hiding this comment.
+1 but squash those into a single commit.
d80dbef to
b02541e
Compare
A .git directory found in src/ usually indicates that the code in the enclosing directory is managed from said .git directory. This can lead to confusion, and developers opening PRs against obsolete repos when, as happens frequently, a formerly separate repository becomes integrated into the primary repo. This patch changes the configure script to warn when it finds such .git directories. Example output: $ ./configure --dev --skip-deps ==> configuring couchdb in rel/couchdb.config WARNING unexpected .git directory src/couch_tests/.git WARNING unexpected .git directory src/rexi/.git WARNING unexpected .git directory src/mem3/.git WARNING unexpected .git directory src/smoosh/.git WARNING unexpected .git directory src/couch_mrview/.git WARNING unexpected .git directory src/couch/.git WARNING unexpected .git directory src/couch_replicator/.git WARNING unexpected .git directory src/ddoc_cache/.git WARNING unexpected .git directory src/couch_peruser/.git WARNING unexpected .git directory src/setup/.git WARNING unexpected .git directory src/couch_log/.git WARNING unexpected .git directory src/couch_epi/.git WARNING unexpected .git directory src/mango/.git WARNING unexpected .git directory src/chttpd/.git WARNING unexpected .git directory src/couch_stats/.git WARNING unexpected .git directory src/global_changes/.git WARNING unexpected .git directory src/couch_event/.git WARNING unexpected .git directory src/fabric/.git WARNING unexpected .git directory src/couch_plugins/.git WARNING unexpected .git directory src/ken/.git WARNING unexpected .git directory src/couch_index/.git You have configured Apache CouchDB, time to relax. Relax.
b02541e to
c5d24d8
Compare
Overview
A .git directory found in src/ usually indicates that the code in the
enclosing directory is managed from said .git directory. This can lead
to confusion, and developers opening PRs against obsolete repos when, as
happens frequently, a formerly separate repository becomes integrated
into the primary repo.
This patch changes the configure script to warn when it finds such .git
directories.
Testing recommendations
Example output:
Related Issues or Pull Requests
Checklist
rel/overlay/etc/default.ini