Opened 10 years ago
Last modified 9 years ago
#39356 new defect (bug)
grunt precommit doesn't work on full checkouts of develop.svn
| Reported by: | pento | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Future Release |
| Component: | Build/Test Tools | Version: | |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
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.