Fix #3126 - Use the --porcelain flag instead of grepping out the branch information