Skip to content

Re-add HexHash to Request struct for create_reference call (#12354)#12377

Merged
Byron merged 1 commit intogitbutlerapp:masterfrom
Byron:fix3
Feb 16, 2026
Merged

Re-add HexHash to Request struct for create_reference call (#12354)#12377
Byron merged 1 commit intogitbutlerapp:masterfrom
Byron:fix3

Conversation

@Byron
Copy link
Collaborator

@Byron Byron commented Feb 16, 2026

This was changed by accident, and a way to prevent such mistakes in future would be to not add serde support to gix types.

Fixes #12354.

Copilot AI review requested due to automatic review settings February 16, 2026 18:34
@vercel
Copy link

vercel bot commented Feb 16, 2026

@Byron is attempting to deploy a commit to the GitButler Team on Vercel.

A member of the Team first needs to authorize it.

@Byron Byron enabled auto-merge February 16, 2026 18:34
@github-actions github-actions bot added the rust Pull requests that update Rust code label Feb 16, 2026
…tlerapp#12354)

This was changed by accident, and a way to prevent such mistakes in future would be
to not add serde support to `gix` types.
@github-actions github-actions bot added the CLI The command-line program `but` label Feb 16, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request fixes a bug where creating a branch from a commit in the UI always failed with a deserialization error. The issue was caused by accidentally using gix::ObjectId directly in the API request struct instead of the HexHash wrapper type.

Changes:

  • Re-added the HexHash wrapper type for the commit_id field in the Anchor::AtCommit variant
  • Added the necessary import for HexHash from crate::json
  • Updated the conversion to explicitly call .into() to convert HexHash to gix::ObjectId

@Byron Byron merged commit b9a9152 into gitbutlerapp:master Feb 16, 2026
26 of 27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLI The command-line program `but` rust Pull requests that update Rust code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

UI: Create Branch > Branch from/after this commit always errors

1 participant