This commit is contained in:
Unknown 2014-04-13 04:08:25 -04:00
parent 9d983f27d6
commit d26a333dfb
3 changed files with 12 additions and 7 deletions

View file

@ -255,12 +255,13 @@ func CreateRepository(user *User, name, desc, lang, license string, private, mir
}
repo := &Repository{
OwnerId: user.Id,
Name: name,
LowerName: strings.ToLower(name),
Description: desc,
IsPrivate: private,
IsBare: lang == "" && license == "" && !initReadme,
OwnerId: user.Id,
Name: name,
LowerName: strings.ToLower(name),
Description: desc,
IsPrivate: private,
IsBare: lang == "" && license == "" && !initReadme,
DefaultBranch: "master",
}
repoPath := RepoPath(user.Name, repo.Name)