[bash][git] Fix branch status difference calculation