Skip to content
This repository has been archived by the owner on Oct 8, 2020. It is now read-only.

Transfer responsibility for enforcing tag target type to Xgit.Repository.Plumbing. #279

Merged
merged 2 commits into from
Jan 7, 2020

Conversation

scouten
Copy link
Collaborator

@scouten scouten commented Jan 7, 2020

Changes in This Pull Request

Previously, Xgit.Repository.Storage.put_ref/3 verified that the target object was of type commit. This caused a problem with the upcoming implementation of Xgit.Repository.tag/4, which needed to be able to write a tag object and have that pointed to by the ref.

This PR moves that enforcement to Xgit.Repository.Plumbing.update_ref/4.

Checklist

  • This PR represents a single feature, fix, or change.
  • All applicable changes have been documented.
  • There is test coverage for all changes.
  • All cases where a literal value is returned use the cover macro to force code coverage.
  • Any code ported from jgit maintains all existing copyright and license notices. n/a
  • If new files are ported from jgit, the path to the corresponding file(s) is included in the header comment. n/a
  • Any TO DO items (or similar) have been entered as GitHub issues and the link to that issue has been included in a comment. n/a

@scouten scouten self-assigned this Jan 7, 2020
@scouten scouten merged commit 4a19001 into master Jan 7, 2020
@scouten scouten deleted the put_ref+dont-enforce-type branch January 7, 2020 05:43
scouten added a commit that referenced this pull request Jan 8, 2020
* master:
  Transfer responsibility for enforcing tag target type to Xgit.Repository.Plumbing. (#279)
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.

1 participant