commit | 76b8c71fb1eb6830ce342b8af58a5ca4c0bab1d9 | [log] [tgz] |
---|---|---|
author | Monty Taylor <mordred@inaugust.com> | Sat Feb 22 10:23:55 2014 -0800 |
committer | Monty Taylor <mordred@inaugust.com> | Sat Feb 22 10:23:55 2014 -0800 |
tree | 664ef37c0084a543737a683cb0b52e7f2b5e437b | |
parent | 7f95d989995abeec4a9cf48135cb596825784a51 [diff] |
Don't split the initial branch list on all whitespace If there is an explicit upstream HEAD pointing at master, the "if -> in branch" is supposed to filter it out. Unfortunately, because split() does all whitespace, we actually lose the -> in the line so we can't exclude those lines. Instead, split first on newlines explicitly. Then do the filter on content. Then, when we're happy it's a good target, split on whitespace. Change-Id: I2ed39570eb26a0c7f1fa1f7381c1e14217c981bb