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

remote: make Fetch atomic. #185

Merged
merged 1 commit into from
Dec 16, 2016
Merged

remote: make Fetch atomic. #185

merged 1 commit into from
Dec 16, 2016

Conversation

smola
Copy link
Collaborator

@smola smola commented Dec 14, 2016

  • Remote now exposes only Fetch. No Connect, Disconnect, etc.
  • Repository uses a private fetch method in Remote for Clone/Pull.
  • getting capabilities, HEAD or other information from remote
    requires using the lower level client.
  • add Fetch method to Repository.

@smola smola mentioned this pull request Dec 14, 2016
@codecov-io
Copy link

codecov-io commented Dec 14, 2016

Current coverage is 77.03% (diff: 75.30%)

Merging #185 into master will decrease coverage by 0.75%

@@             master       #185   diff @@
==========================================
  Files            93         93          
  Lines          5953       5987    +34   
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
- Hits           4631       4612    -19   
- Misses          836        890    +54   
+ Partials        486        485     -1   

Powered by Codecov. Last update 63c66c9...44df958

@mcuadros
Copy link
Contributor

@smola rebase

if err = remote.Connect(); err != nil {
return err
fetchRefSpecs := c.Fetch
if o.SingleBranch {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this code can go in a function to be more easy to read

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done


// Create resolved HEAD reference with remote prefix if it does not
// exist. This is needed when using single branch and HEAD.
for _, rs := range spec {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this code can go in a function

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

* Remote now exposes only Fetch. No Connect, Disconnect, etc.
* Repository uses a private fetch method in Remote for Clone/Pull.
* getting capabilities, HEAD or other information from remote
  requires using the lower level client.
* add Fetch method to Repository.
@mcuadros mcuadros merged commit 71ed26c into src-d:master Dec 16, 2016
mcuadros pushed a commit that referenced this pull request Jan 31, 2017
* Remote now exposes only Fetch. No Connect, Disconnect, etc.
* Repository uses a private fetch method in Remote for Clone/Pull.
* getting capabilities, HEAD or other information from remote
  requires using the lower level client.
* add Fetch method to Repository.
gsalingu-ovhus pushed a commit to gsalingu-ovhus/go-git that referenced this pull request Mar 28, 2019
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.

4 participants