Cathy Theys, Drupal-Entwicklerin

Knowledge

When having trouble reproducing an issue, or testing a patch, start clean

I put this list together of things to try when one person in an issue is reporting results, but someone else is getting different results.

I put this list together of things to try when one person in an issue is reporting results, but someone else is getting different results.

  • git stash
  • git checkout 8.x
  • sudo rm -r sites
  • git checkout sites
  • git pull --rebase

The rm of sites, removes configuration files that might be left over from a previous install.

If things are really strange:

  • sudo rm -r drupal
  • git clone --recursive --branch 8.x http://git.drupal.org/project/drupal.git

Which is copy and pasted from http://drupal.org/project/drupal/git-instructions)

If I'm lucky and these work, then something like:

  • drush am 432962

to get the most recent patch on an issue, checkout a new branch, and apply the patch.

(re) Installing

If I'm not testing an install screen, I use drush to install for me:

  • drush -y si --account-pass=admin --db-url="mysql://root:root@localhost/drupal" --site-name="disable checker 432962"

If testing install, or just want to install by hand this is helpful to drop the tables before doing the install:

  • drush -y sql-drop --db-url="mysql://root:root@localhost/drupal"

Browser cache

Then, if things are still strange, I clear my browser cache (or do a shift refresh/reload).

Kommentare

mikeytown2 - Mon, 02/18/2013 - 21:48
from the man page -x Don't use the standard ignore rules read from .gitignore (per directory) and $GIT_DIR/info/exclude, but do still use the ignore rules given with -e options. This allows removing all untracked files, including build products. <strong>This can be used (possibly in conjunction with git reset) to create a pristine working directory to test a clean build.</strong>
Cathy Theys - Thu, 02/14/2013 - 08:25
<p>&nbsp;Would you do that instead of the git stash?</p>
mikeytown2 - Thu, 02/14/2013 - 01:24
git-clean - Remove untracked files from the working tree http://git-scm.com/docs/git-clean `git clean -d -f -x` Useful when dealing with drupal and different versions.