Repository navigation
test: cover behaviors that change in libgit2 v2 - #1329
Merged
Merged
Conversation
Pin today's behavior so the libgit2 2.0 bump shows each change as a diff in these assertions: * `Reference` equality ignores the name; libgit2 2.0 compares it first. libgit2/libgit2#6346 https://github.com/libgit2/libgit2/blob/f28579db11737eaa2ced18498e229967a12f1c3f/src/libgit2/refs.c#L1100-L1111 * `RepositoryInitOptions::workdir_path` puts the repository at `<path>/.git`; libgit2 2.0 uses `<path>` itself. libgit2/libgit2#6982 https://github.com/libgit2/libgit2/blob/f28579db11737eaa2ced18498e229967a12f1c3f/src/libgit2/repository.c#L2751-L2754 * `ConfigLevel::ProgramData` has a search path; libgit2 2.0 no longer reads it. libgit2/libgit2#7329 https://github.com/libgit2/libgit2/blob/f28579db11737eaa2ced18498e229967a12f1c3f/include/git2/deprecated.h#L313-L315
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pin today's behavior so the libgit2 2.0 bump shows each change as a diff in these assertions:
Referenceequality ignores the name; libgit2 2.0 compares it first.git_reference_cmpconsider the name libgit2/libgit2#6346RepositoryInitOptions::workdir_pathputs the repository at<path>/.git; libgit2 2.0 uses<path>itself..gitfor separate workdir libgit2/libgit2#6982ConfigLevel::ProgramDatahas a search path; libgit2 2.0 no longer reads it.