You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
git spr up returns pull request stack is empty — even when there are local commits to be pushed and PRs created — when the following git config is present:
[log]
abbrevCommit=true
helpers.go:78 defines the following regexp for extracting the commit hash:
^commit ([a-f0-9]{40})
However, when using abbreviated commit hashes, this regexp doesn't match. Here is an example of log output with an abbreviated commit hash:
commit ca06022
Using the following config options, the commit hash length could be anywhere between 1-40 characters:
Always add --no-abbrev-commit when running git log
I would go with option (1), because it is backwards-compatible with git versions prior to the --no-abbrev-commit flag appearing (didn't check when this was though).
The text was updated successfully, but these errors were encountered:
As mentioned here:
#213 (comment)
Problem
git spr up
returnspull request stack is empty
— even when there are local commits to be pushed and PRs created — when the following git config is present:helpers.go:78 defines the following regexp for extracting the commit hash:
However, when using abbreviated commit hashes, this regexp doesn't match. Here is an example of log output with an abbreviated commit hash:
Using the following config options, the commit hash length could be anywhere between 1-40 characters:
Solutions
--no-abbrev-commit
when runninggit log
I would go with option (1), because it is backwards-compatible with git versions prior to the
--no-abbrev-commit
flag appearing (didn't check when this was though).The text was updated successfully, but these errors were encountered: