diff options
author | Unknwon <u@gogs.io> | 2016-01-15 18:00:39 +0800 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2016-01-15 18:00:39 +0800 |
commit | c631a4a9b988e63bd8b07dfdeee1f1d4b3ad7d45 (patch) | |
tree | 6a142a842cbe2d0fdf87ce79e52903aec30825c7 /models | |
parent | dccfadf7b80b0b59e28dd64f71560a3dd82a424c (diff) |
URL fix for #2287
Diffstat (limited to 'models')
-rw-r--r-- | models/action.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/models/action.go b/models/action.go index 4e5f461a..33d5246e 100644 --- a/models/action.go +++ b/models/action.go @@ -123,6 +123,10 @@ func (a *Action) ShortRepoName() string { } func (a *Action) GetRepoPath() string { + return path.Join(a.RepoUserName, a.RepoName) +} + +func (a *Action) ShortRepoPath() string { return path.Join(a.ShortRepoUserName(), a.ShortRepoName()) } |