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

fix push on git and ssh #418

Merged
merged 7 commits into from
Jun 13, 2017
Merged

fix push on git and ssh #418

merged 7 commits into from
Jun 13, 2017

Conversation

smola
Copy link
Collaborator

@smola smola commented Jun 12, 2017

This PR should fix this issue: #310
Push was getting blocked with git and ssh transport because connection was not closed properly.
This is fixed in the first commit of the PR. All the others are fixing other issues
that arised while adding code to test the original issue.

@smola smola changed the title Ssh issue 310 fix push on git and ssh Jun 12, 2017
@smola smola requested review from mcuadros and alcortesm June 12, 2017 14:08
c.Assert(err, IsNil)
s.ReceivePackSuite.NonExistentEndpoint = ep

fmt.Println("BASE", base)
Copy link
Contributor

Choose a reason for hiding this comment

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

leftover?

@@ -329,10 +333,12 @@ func (s *session) checkNotFoundError() error {
}

var (
Copy link
Contributor

Choose a reason for hiding this comment

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

just a question, why these strings are variables instead of constants?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

they could actually be constants ;)

@codecov
Copy link

codecov bot commented Jun 13, 2017

Codecov Report

Merging #418 into master will decrease coverage by 0.56%.
The diff coverage is 81.81%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master    #418      +/-   ##
=========================================
- Coverage   77.76%   77.2%   -0.57%     
=========================================
  Files         124     124              
  Lines        9014    9019       +5     
=========================================
- Hits         7010    6963      -47     
- Misses       1231    1298      +67     
+ Partials      773     758      -15
Impacted Files Coverage Δ
plumbing/transport/git/common.go 80.95% <100%> (+10.22%) ⬆️
remote.go 70.91% <100%> (+0.09%) ⬆️
plumbing/transport/file/client.go 93.75% <66.66%> (-6.25%) ⬇️
plumbing/transport/ssh/common.go 0% <0%> (-50.91%) ⬇️
plumbing/transport/ssh/auth_method.go 33.33% <0%> (-24.77%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2a00316...cbbd2a9. Read the comment docs.

smola added 3 commits June 13, 2017 14:57
* at low level, ReceivePack must close its stream to the
  server to signal it has finished.
* remote.go: Close() must be called on session.
smola added 4 commits June 13, 2017 15:39
"ERR access denied or repository not exported:"
is now detected as transport.ErrRepositoryNotFound, since
that's what git-daemon returns when --informative-errors is
not used.
@smola smola merged commit beab77a into src-d:master Jun 13, 2017
@smola smola deleted the ssh-issue-310 branch June 13, 2017 14:01
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