Repository navigation
Tackle remote API issues from bindings - #3127
Merged
Merged
Conversation
carlosmn
force-pushed
the
cmn/remote-fixups
branch
2 times, most recently
from
May 17, 2015 13:22
f36580a to
8be1fb5
Compare
carlosmn
force-pushed
the
cmn/remote-fixups
branch
from
May 17, 2015 13:32
8be1fb5 to
564ffa6
Compare
Member
There was a problem hiding this comment.
typo. I imagine that were willing to rather write pony-ter?
Member
Author
There was a problem hiding this comment.
It looks like I hit C-t in the wrong spot
The code used to rely on the clone code calling the remote's save, which does not happen anymore, meaning that the configuration settings the remote expected were not being written to disk. The run-time configuration was still being affected, so the right branch was being cloned. The tests continued to pass as we did not check for the configuration entires. Fix this by creating the remote with the single-branch refspec we want and checking for its existence in the configuration.
These were left over from the culling as it's not clear which use-cases might benefit from this. It is not clear that we want to support any use-case which depends on changing the remote's idea of the base refspecs rather than passing in different per-operation refspec list, so remove these functions.
carlosmn
force-pushed
the
cmn/remote-fixups
branch
from
May 17, 2015 13:45
564ffa6 to
0fedc06
Compare
nulltoken
added a commit
to libgit2/libgit2sharp
that referenced
this pull request
May 17, 2015
Coping with libgit2/libgit2#3127 changes
nulltoken
added a commit
to libgit2/libgit2sharp
that referenced
this pull request
May 17, 2015
Coping with libgit2/libgit2#3127 changes
Member
|
It would be amazing if you could also tackle #3134 as part of this one. |
nulltoken
added a commit
to libgit2/libgit2sharp.nativebinaries
that referenced
this pull request
May 22, 2015
nulltoken
added a commit
to libgit2/libgit2sharp.nativebinaries
that referenced
this pull request
May 22, 2015
nulltoken
added a commit
to libgit2/libgit2sharp.nativebinaries
that referenced
this pull request
May 22, 2015
2 tasks
carlosmn
force-pushed
the
cmn/remote-fixups
branch
from
May 22, 2015 15:16
6ee3d6d to
b2212e4
Compare
nulltoken
added a commit
to libgit2/libgit2sharp.nativebinaries
that referenced
this pull request
May 22, 2015
nulltoken
added a commit
to libgit2/libgit2sharp.nativebinaries
that referenced
this pull request
May 22, 2015
nulltoken
added a commit
to libgit2/libgit2sharp.nativebinaries
that referenced
this pull request
May 22, 2015
Member
|
Awesome work! 🙇 Tested through libgit2/libgit2sharp#1049. All LibGit2Sharp test now pass. 👍 to have it merged (please?). |
An anonymous remote is not configured and cannot therefore have configured refspecs. Remove the parameter which adds this from the constructor.
When we moved from acting on the instance to acting on the configuration, we dropped the validation of the passed refspec, which can lead to writing an invalid refspec to the configuration. Bring that validation back.
These are updates, same as the rest, we should call this callback. As we are using the callback, let's make sure to skip unnecessary updates.
carlosmn
force-pushed
the
cmn/remote-fixups
branch
from
May 28, 2015 13:32
b2212e4 to
9566ce4
Compare
carlosmn
added a commit
that referenced
this pull request
May 28, 2015
Tackle remote API issues from bindings
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.
The
set_fetch_refspecs()bit was something which I wasn't quite sure if we wanted to support. But changing the idea of what the base refpecs are at runtime... doesn't sit well with me, so let's just remove it. If you want to perform complex fetches, you can perform a couple or craft your per-operation refspecs to your satisfaction.This also fixes a test which was relying on implicit side effects in clone and which this run-time setting let succeed even though the final result was not what we wanted.
Add validation to
add_fetch()andadd_push()and removed the fetch param fromcreate_anonymous()which cannot have configured refspecs by definition.