[git-rebase-chain] Fix overly-aggressive stripping of branch prefixes.

Due to the way lstrip() works, if the branch we're dealing with starts
with any part of what we're stripping ("refs/heads/"), that part will be
stripped from the branch name. This turns "reporting" into "porting".

We now strip by length instead.