Using Git bisect to figure out when brokenness was introduced

I did a fresh installation of Drupal 8 this morning and came across a bit of ugliness: an ugly grey border on the home page, caused by an empty div being inserted into the page:


Default front page showing a mysterious empty, grey-bordered box


My last fresh install of Drupal 8 was about a week ago and didn't have this problem. I didn't relish the idea of going through all of the commits since then one-by-one to figure out where this bug was introduced.


Enter the git bisect command! The bisect command works by performing a "binary" search between one state of the code and the other in order to find, by process of elimination, where a given problem was introduced. It's quick, it's easy, and by golly it just works!


Here's how to use git bisect, step-by-step!


read more

 •  0 comments  •  flag
Share on Twitter
Published on October 02, 2011 14:35
No comments have been added yet.


Angela Byron's Blog

Angela Byron
Angela Byron isn't a Goodreads Author (yet), but they do have a blog, so here are some recent posts imported from their feed.
Follow Angela Byron's blog with rss.