diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2018-08-11 15:50:42 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-11 15:50:42 +1000 |
commit | aec125df7042dd88ad402a819ab1285031250474 (patch) | |
tree | a0590e78eb5d0c12ebde0a7fc012e2c6e2d985f9 /vendor/gopkg.in/src-d/go-git.v4/plumbing/transport/internal/common/common.go | |
parent | bf9a53fada5b4d72f3e3b0a8877ab845867137df (diff) | |
parent | 9626ebdf3577090cff24fab82880fe9d330adb59 (diff) |
Merge branch 'master' into add-void-readme
Diffstat (limited to 'vendor/gopkg.in/src-d/go-git.v4/plumbing/transport/internal/common/common.go')
-rw-r--r-- | vendor/gopkg.in/src-d/go-git.v4/plumbing/transport/internal/common/common.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/vendor/gopkg.in/src-d/go-git.v4/plumbing/transport/internal/common/common.go b/vendor/gopkg.in/src-d/go-git.v4/plumbing/transport/internal/common/common.go index 8ec1ea52b..00497f3c1 100644 --- a/vendor/gopkg.in/src-d/go-git.v4/plumbing/transport/internal/common/common.go +++ b/vendor/gopkg.in/src-d/go-git.v4/plumbing/transport/internal/common/common.go @@ -382,6 +382,7 @@ var ( gitProtocolNotFoundErr = "ERR \n Repository not found." gitProtocolNoSuchErr = "ERR no such repository" gitProtocolAccessDeniedErr = "ERR access denied" + gogsAccessDeniedErr = "Gogs: Repository does not exist or you do not have access" ) func isRepoNotFoundError(s string) bool { @@ -409,6 +410,10 @@ func isRepoNotFoundError(s string) bool { return true } + if strings.HasPrefix(s, gogsAccessDeniedErr) { + return true + } + return false } |