Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Turn off log.decorate when parsing log output #8
Given lines like:
This code would error out with:
Fix that by turning off decorate for the log invocation, and while I'm
Given lines like: commit 0245492ee0 commit 5b0af9d6f8 (sahildua/add-copy-branch-feature) This code would error out with: Traceback (most recent call last): File "/home/avar/bin/git-tbdiff", line 400, in <module> sA, dA = read_patches(rangeA) File "/home/avar/bin/git-tbdiff", line 92, in read_patches _, sha1 = line.strip().split() ValueError: too many values to unpack Fix that by turning off decorate for the log invocation, and while I'm at it turn off commit abbreviation which isn't needed here either.
I think this merits a bit more explanation. How about this?