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

Fixup git operations #6

Merged
merged 6 commits into from
Jul 26, 2023
Merged

Fixup git operations #6

merged 6 commits into from
Jul 26, 2023

Conversation

Jake-Shadle
Copy link
Member

  • Fix remote logic
  • Account for new lock error
  • Set committer details when updating reflog

This fixes some issues when dealing with git index repos managed by cargo that the internal testing in this crate didn't discover, namely that cargo (via git2) does not set remotes, and updating reflogs requires that a committer be set by gix which isn't the case in CI environments (I guess that doesn't apply if the remote is a directory on the same filesystem?). So this PR resolves both those issues.

Apparently cargo, when cloning via git2, never sets a remote, so the
logic for fetching updates basically never worked. I will add a test
for this later...

Shamelessly stolen from
frewsxcv/rust-crates-index#129
@Jake-Shadle Jake-Shadle merged commit ae3d8e8 into main Jul 26, 2023
7 checks passed
@Jake-Shadle Jake-Shadle deleted the fix-git-fetch branch July 26, 2023 16:47
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.

1 participant