Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

umpf: call rev-parse on manually selected local branches as well #25

Merged
merged 1 commit into from
Sep 5, 2023

Conversation

a3f
Copy link
Member

@a3f a3f commented Sep 5, 2023

When umpf compares branches between all of the known remotes, it will now prompt the user when it discovers a branch that includes additional commits compared to the one on the selected remote.

If the user confirms, the branch name is taken as is, which would result in an umpf-hashinfo of e.g. heads/v6.4/topic/something, which breaks the ability of doing identical umpfs.

To restore that ability, we need to call rev-parse on the ${branch}.

Fixes: 000e642 ("umpf: add branch choice in case of additional commits")

umpf Outdated Show resolved Hide resolved
@Emil-Juhl
Copy link
Contributor

This worked for me locally and fixed the hashinfo. So stamp of approval from my side :) Thanks for fixing it!

umpf Outdated Show resolved Hide resolved
When umpf compares branches between all of the known remotes, it will now
prompt the user when it discovers a branch that includes additional commits
compared to the one on the selected remote.

If the user confirms, the branch name is taken as is, which would result in
an umpf-hashinfo of e.g. heads/v6.4/topic/something, which breaks the
ability of doing identical umpfs.

To restore that ability, we use the result of calling rev-parse on the
${branch}, which is conveniently available already in ${b}.

Fixes: 000e642 ("umpf: add branch choice in case of additional commits")
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
@michaelolbrich michaelolbrich merged commit 9ecc2b9 into pengutronix:master Sep 5, 2023
3 checks passed
@a3f a3f deleted the afa/revparse-local-branch branch September 5, 2023 18:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants