WordPress.org

Make WordPress Core

#38779 closed defect (bug) (fixed)

Ensure untracked files are listed by git in core themes

Reported by: westonruter Owned by: westonruter
Milestone: WordPress.org Priority: normal
Severity: normal Version:
Component: Build/Test Tools Keywords:
Focuses: Cc:

Description

Because /src/wp-content/theme is ignored in .gitignore, any new files added to core themes will not be listed when doing git status, and any such files will not be added with doing git add without --force, giving the error message: “The following paths are ignored by one of your .gitignore files”.

Following up on #27207.

Attachments (1)

38779.0.diff (619 bytes) - added by westonruter 12 months ago.

Download all attachments as: .zip

Change History (4)

#1 @westonruter
12 months ago

I tried to commit but I got an SVN pre-commit hook error:

$ svn ci .gitignore
Sending        .gitignore
Transmitting file data .svn: E165001: Commit failed (details follow):
svn: E165001: Failed to start '/home/svn/repos/wp-develop/hooks/pre-commit' hook
svn: E165001: Your commit message was left in a temporary file:
svn: E165001:    '.../vvv/www/wordpress-develop/svn-commit.tmp'

This ticket was mentioned in Slack in #core by westonruter. View the logs.


12 months ago

#3 @westonruter
12 months ago

  • Owner set to westonruter
  • Resolution set to fixed
  • Status changed from new to closed

In 39362:

Git: Prevent untracked files from being ignored by git in bundled themes.

See #27207.
Fixes #38779.

Note: See TracTickets for help on using tickets.