Commit a07b169834a11f60a2baa98f9735c2dfe7e4a1ee

Carlos Martín Nieto 2014-03-07T15:40:53

branch: fix leak when checking against HEAD We look up a reference in order to figure out if it's the current branch, which we need to free once we're done with the check. As a bonus, only perform the check when we're passed the force flag, as it's a useless check otherwise.