This website works better with JavaScript.
Home
Explore
Help
Sign In
closed-social
/
gitea
Watch
3
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
0
Wiki
Activity
Browse Source
RepoInit Respect AlternateDefaultBranch (
#12746
)
for-closed-social
6543
4 years ago
committed by
GitHub
parent
0b198eb392
commit
ad2bf376df
No known key found for this signature in database
GPG Key ID:
4AEE18F83AFDEB23
1 changed files
with
4 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+4
-0
modules/repository/create.go
+ 4
- 0
modules/repository/create.go
View File
@ -23,6 +23,10 @@ func CreateRepository(doer, u *models.User, opts models.CreateRepoOptions) (_ *m
}
}
if
len
(
opts
.
DefaultBranch
)
==
0
{
opts
.
DefaultBranch
=
setting
.
Repository
.
DefaultBranch
}
repo
:=
&
models
.
Repository
{
OwnerID
:
u
.
ID
,
Owner
:
u
,
Write
Preview
Loading…
Cancel
Save