Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Fix: repository reset now tracks actual git refs #2

Merged
merged 1 commit into from
Jun 29, 2021

Conversation

Joaquimmnetto
Copy link
Contributor

@Joaquimmnetto Joaquimmnetto commented Jun 28, 2021

Repository reset operation was comparing the captured refs with themselves. Fix now makes it compare the captured refs with current repository refs.
Also had to add a conditional explicitly excluding PRs from the ref iteration, as for some reason github puts PRs as refs 🤔

Also added more in depth testing for the repository reset operation, and updated github-api lib to latest version.

Changes

  • FIX repository reset now compare older refs with current refs
  • UPDATE org.kohsuke:github-api library to 1.131

@Joaquimmnetto Joaquimmnetto requested a review from Larusso June 28, 2021 13:34
@Joaquimmnetto Joaquimmnetto self-assigned this Jun 28, 2021
@Larusso
Copy link
Member

Larusso commented Jun 29, 2021

oh what a stupid mistake. As of PRs as refs that is quite smart since refs are just references and git itself is just a virtual filesystem. I thought about adding custom refs for our tooling as well. Mainly encoding versions etc. Gerrit uses refs to encode PR comments. Since one can create arbitary blob objects/shas in the git storage and connect them via custom refs.

@Joaquimmnetto Joaquimmnetto merged commit 276aa53 into master Jun 29, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants