diff options
author | slene <vslene@gmail.com> | 2014-03-30 10:13:02 +0800 |
---|---|---|
committer | slene <vslene@gmail.com> | 2014-03-30 10:13:02 +0800 |
commit | b27c34f39acee3bf7b6594a1f0db2183b343326c (patch) | |
tree | 47c19758b57fbaf43a3806191e4ab2f64be6978d /models/repo.go | |
parent | 41ca0ed30212367389099cfefa41587ec80d85f5 (diff) | |
download | gitea-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.go | 2 |
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 { |