Opened 9 years ago
Last modified 9 years ago
#39356 new defect (bug)
grunt precommit doesn't work on full checkouts of develop.svn
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Future Release | Priority: | normal |
| Severity: | normal | Version: | |
| Component: | Build/Test Tools | Keywords: | has-patch |
| Focuses: | Cc: |
Description
To reproduce:
$ svn co https://develop.svn.wordpress.org/ develop.svn $ cd develop.svn/branches/4.7
Edit a file in the 4.7 branch, then run grunt precommit. It fails with this message:
$ grunt precommit Running "precommit" task Fatal error: This WordPress install is not under version control.
Attachments (1)
Change History (4)
Note: See
TracTickets for help on using
tickets.
I've added a search path for the
.svnfolder two levels up in 39356.diff, this works fine for bothsvn co https://develop.svn.wordpress.org/andsvn co https://develop.svn.wordpress.org/trunkcheckoutsNote: A Git equivalent isn't required as Git handles branches differently as the
.gitis always present at the root level irrespective of the checked out branch.