diff options
author | Unknwon <joe2010xtmf@163.com> | 2014-12-13 16:46:00 -0500 |
---|---|---|
committer | Unknwon <joe2010xtmf@163.com> | 2014-12-13 16:46:00 -0500 |
commit | b553ea45ee29f5fc4f123c9f1083b90104ec4fe4 (patch) | |
tree | dc94dd0814d260e2f48560db2b9a091a9d3b33dd /modules/middleware/context.go | |
parent | ac4a10456ea4515091c3c90a83a82c1e59cdf428 (diff) |
modes/repo: incorrect SSH clone URL for #742
Diffstat (limited to 'modules/middleware/context.go')
-rw-r--r-- | modules/middleware/context.go | 42 |
1 files changed, 19 insertions, 23 deletions
diff --git a/modules/middleware/context.go b/modules/middleware/context.go index fb33c48e..fc781440 100644 --- a/modules/middleware/context.go +++ b/modules/middleware/context.go @@ -39,29 +39,25 @@ type Context struct { IsBasicAuth bool Repo struct { - IsOwner bool - IsTrueOwner bool - IsWatching bool - IsBranch bool - IsTag bool - IsCommit bool - IsAdmin bool // Current user is admin level. - HasAccess bool - Repository *models.Repository - Owner *models.User - Commit *git.Commit - Tag *git.Tag - GitRepo *git.Repository - BranchName string - TagName string - TreeName string - CommitId string - RepoLink string - CloneLink struct { - SSH string - HTTPS string - Git string - } + IsOwner bool + IsTrueOwner bool + IsWatching bool + IsBranch bool + IsTag bool + IsCommit bool + IsAdmin bool // Current user is admin level. + HasAccess bool + Repository *models.Repository + Owner *models.User + Commit *git.Commit + Tag *git.Tag + GitRepo *git.Repository + BranchName string + TagName string + TreeName string + CommitId string + RepoLink string + CloneLink models.CloneLink CommitsCount int Mirror *models.Mirror } |