forgejo/services/repository
yp05327 1a250c7b2b
Fix incorrect default branch when adopt a repository (#30912)
Fix #30521

we should sync branches first, then detect default branch, or
`git_model.FindBranchNames` will always return empty list, and the
detection will be wrong.

(cherry picked from commit e94723f2de7d9bf12d870f5ce9ffb291a99ba090)

Conflicts:
	services/repository/adopt.go
	trivial conflict because
	  e80466f734 Resolve lint for unused parameter and unnecessary type arguments (#30750)
	was not cherry-picked
2024-05-12 20:03:10 +02:00
..
archiver
commitstatus Add codespell support and fix a good number of typos with its help (#3270) 2024-05-09 13:49:37 +00:00
files Resolve lint for unused parameter and unnecessary type arguments (#30750) 2024-05-05 08:38:16 +01:00
adopt.go Fix incorrect default branch when adopt a repository (#30912) 2024-05-12 20:03:10 +02:00
adopt_test.go
avatar.go
avatar_test.go
branch.go Resolve lint for unused parameter and unnecessary type arguments (#30750) 2024-05-05 08:38:16 +01:00
cache.go
check.go
collaboration.go
collaboration_test.go
commit.go
contributors_graph.go Add codespell support and fix a good number of typos with its help (#3270) 2024-05-09 13:49:37 +00:00
contributors_graph_test.go [BUG] Store JSON in contributors commit cache 2024-04-11 13:01:33 +02:00
create.go
create_test.go
delete.go Check the token's owner and repository when registering a runner (#30406) 2024-04-16 09:38:26 +02:00
delete_test.go
fork.go Allow admins to fork repos even when creation limits are exhausted (#3277) 2024-04-17 05:52:02 +00:00
fork_test.go
generate.go
generate_test.go
hooks.go
init.go
lfs.go
lfs_test.go test: LFS gc should not delete all metadata objects 2024-04-26 10:16:59 +02:00
main_test.go
migrate.go
push.go
repository.go
repository_test.go
review.go
review_test.go
setting.go
template.go
transfer.go
transfer_test.go