aboutsummaryrefslogtreecommitdiffstats
path: root/models/repo.go
diff options
context:
space:
mode:
authorslene <vslene@gmail.com>2014-03-30 10:13:02 +0800
committerslene <vslene@gmail.com>2014-03-30 10:13:02 +0800
commitb27c34f39acee3bf7b6594a1f0db2183b343326c (patch)
tree47c19758b57fbaf43a3806191e4ab2f64be6978d /models/repo.go
parent41ca0ed30212367389099cfefa41587ec80d85f5 (diff)
downloadgitea-b27c34f39acee3bf7b6594a1f0db2183b343326c.tar.gz
gitea-b27c34f39acee3bf7b6594a1f0db2183b343326c.zip
update git api. fix link... and so on
Diffstat (limited to 'models/repo.go')
-rw-r--r--models/repo.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/repo.go b/models/repo.go
index 0b2bbe4862..4110548362 100644
--- a/models/repo.go
+++ b/models/repo.go
@@ -364,7 +364,7 @@ func GetRepos(num, offset int) ([]UserRepo, error) {
}
func RepoPath(userName, repoName string) string {
- return filepath.Join(UserPath(userName), repoName+".git")
+ return filepath.Join(UserPath(userName), strings.ToLower(repoName)+".git")
}
func UpdateRepository(repo *Repository) error {