[wp-trac] [WordPress Trac] #41078: Detect if someone’s site is under version control, and suggest better ways to edit their sites
WordPress Trac
noreply at wordpress.org
Fri Jun 16 07:32:56 UTC 2017
#41078: Detect if someone’s site is under version control, and suggest better ways
to edit their sites
----------------------------+------------------------------
Reporter: karmatosed | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Administration | Version:
Severity: normal | Resolution:
Keywords: | Focuses:
----------------------------+------------------------------
Comment (by dd32):
Unfortunately detecting this isn't exactly easy, nor ideal for a web app.
For example, older SVN created a `.svn` folder in each directory
versioned, it was easy, just look for the folder!. Later SVN (1.7?) just
added `.svn` to the root directory (Git is the same). The background
upgrader currently looks in all directories up to `/` to determine if a
site is under version control.
Unfortunately it doesn't really help to determine, if say, Theme X is
under a version control system - or if it's the entire WordPress install
under the VCS.. The best option would be to parse each VCS's data store to
determine which files it's got under version control, but I don't think
that's going to be a viable option for core (and also dealing with the
many versions of said VCS's).
--
Ticket URL: <https://core.trac.wordpress.org/ticket/41078#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list