Description[GN]: Fix typo and a bug in the GN roll script.
When complete, the script attempts to switch from the branches it creates
to build and roll things back to the branch you were on before.
The way it determines what branch you were on before is by looking at
git's reflog. However, the way I was looking at the reflog was wrong;
first, it was doing an re.match() instead of an re.search(), and so
it was looking for a match at the beginning of the output (which would
never be true). Second, we were looking at only the most recent entry,
and when the roll script actually executed, the most recent entry would
always be a commit, not a checkout, and so we wouldn't see what the
previous branch was.
BUG=none
R=dpranke@chromium.org
Committed: https://crrev.com/c9ef0df1e21a0e9be8c855fbbf01386ed0617d2a
Cr-Commit-Position: refs/heads/master@{#351613}
Patch Set 1 #Patch Set 2 : #Patch Set 3 : merge in dirk's patch #Messages
Total messages: 13 (4 generated)
|