Skip to content

refresh Reference when commit with update_ref non-None #1330

Open
@pjw91

Description

When repo.amend_commit(commit, branch, tree=tree), where branch is a Reference/str, the reference is update by libgit2 upon calling git_commit_amend.

However, the reference object branch still points to (branch.peel()) the original commit.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions