Search is broken because of an extra line in git output