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

plumbing/transport/internal: common, support Gogs for ErrRepositoryNotFound #888

Merged

Conversation

jeromedoucet
Copy link
Contributor

get an ErrRepositoryNotFound instead of "unknown error" when trying to clone a non-existing repository from Gogs.

In bonus, I add some unit tests for existing case in plumbing/transport/internal/common/common.go#isRepoNotFoundError

NB : I detect this behavior when using Gogs for integration test of git clone with ssh.

…itoryNotFound, avoiding to get an 'unknown error: '. Add some tests for existing supported services (github, gitlab, etc...) too.

Signed-off-by: Jerome Doucet <[email protected]>
@mcuadros mcuadros merged commit 400b083 into src-d:master Jul 16, 2018
@jeromedoucet jeromedoucet deleted the tech/add_gog_repository_not_found branch July 18, 2018 07:35
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.

2 participants