summaryrefslogtreecommitdiffstats
path: root/models/action.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2016-01-15 18:00:39 +0800
committerUnknwon <u@gogs.io>2016-01-15 18:00:39 +0800
commitc631a4a9b988e63bd8b07dfdeee1f1d4b3ad7d45 (patch)
tree6a142a842cbe2d0fdf87ce79e52903aec30825c7 /models/action.go
parentdccfadf7b80b0b59e28dd64f71560a3dd82a424c (diff)
downloadgitea-c631a4a9b988e63bd8b07dfdeee1f1d4b3ad7d45.tar.gz
gitea-c631a4a9b988e63bd8b07dfdeee1f1d4b3ad7d45.zip
URL fix for #2287
Diffstat (limited to 'models/action.go')
-rw-r--r--models/action.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/models/action.go b/models/action.go
index 4e5f461a36..33d5246ee5 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())
}