gitea/modules
zeripath bdb491e764
Push HEAD instead of master when initialising repositories (#13719) (#13740)
* Push HEAD instead of master when initialising repositories

It is possible on modern gits to change the initial branch to something other than
master. This breaks initialising repositories because we assume that the initial
branch is going to be master unless specifically changed.

This PR simply bypasses this issue by pushing the HEAD rather than the master branch.

Signed-off-by: Andrew Thornton <art27@cantab.net>

* Update modules/repository/init.go

Co-authored-by: mrsdizzie <info@mrsdizzie.com>

Co-authored-by: mrsdizzie <info@mrsdizzie.com>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>

Co-authored-by: mrsdizzie <info@mrsdizzie.com>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
2020-11-28 16:59:32 -05:00
..
analyze
auth Disallow urlencoded new lines in git protocol paths if there is a port (#13521) (#13524) 2020-11-11 23:47:42 +02:00
avatar Avatars and Repo avatars support storing in minio (#12516) 2020-10-14 21:07:51 +08:00
base Use a simple format for the big number on ui (#12822) 2020-09-16 00:07:18 -04:00
cache Allow common redis and leveldb connections (#12385) 2020-09-28 00:09:46 +03:00
charset Ensure that the detected charset order is set in chardet test (#12574) 2020-08-23 14:15:29 +01:00
context [API] Only Return Json (#13511) (#13565) 2020-11-15 16:29:16 +00:00
convert [#13004] Add Timestamp to Tag list API (#13026) 2020-10-05 12:07:54 +08:00
cron Add ssh certificate support (#12281) 2020-10-10 20:38:09 -04:00
emoji Fix emoji detection in certain cases (#12320) 2020-07-25 16:40:04 +03:00
eventsource
generate
git Prevent panic on git blame by limiting lines to 4096 bytes at most (#13491) 2020-11-10 08:00:20 +00:00
gitgraph Render the git graph on the server (#12333) 2020-08-06 09:04:08 +01:00
graceful Set TLS minimum version to 1.2 (#12689) 2020-09-02 23:37:49 +01:00
hcaptcha hCaptcha Support (#12594) 2020-10-02 23:37:53 -04:00
highlight Use existing analyzer module for language detection for highlighting (#13522) (#13551) 2020-11-13 18:05:51 -05:00
httplib
indexer fix: use Base36 for all code indexers (#12830) 2020-09-14 13:40:07 +03:00
lfs Storage configuration support `[storage]` (#13314) (#13379) 2020-11-01 23:12:50 +08:00
log Update golangci-lint to version 1.31.0 (#13102) 2020-10-11 21:27:20 +01:00
markup Update golangci-lint to version 1.31.0 (#13102) 2020-10-11 21:27:20 +01:00
metrics
migrations finaly fix gitlab migration with subdir 2.0 (#13646) (#13678) 2020-11-23 16:40:58 +00:00
nosql Allow common redis and leveldb connections (#12385) 2020-09-28 00:09:46 +03:00
notification Add missed sync branch/tag webhook (#13538) (#13556) 2020-11-13 22:04:58 -05:00
options
password Check passwords against HaveIBeenPwned (#12716) 2020-09-08 17:06:39 -05:00
pprof
private Rename models.ProtectedBranchRepoID to models.EnvRepoID and ensure EnvPusherEmail is set (#12646) 2020-08-30 08:24:39 +01:00
process
public fix go1.15 lint error in modules/public/public.go (#12707) 2020-09-04 16:15:54 +03:00
queue Fix the issue reported on #12385 (#12969) 2020-09-28 19:00:54 -04:00
recaptcha hCaptcha Support (#12594) 2020-10-02 23:37:53 -04:00
references Fix panic bug in handling multiple references in commit (#13486) (#13487) 2020-11-09 21:16:34 -05:00
repofiles Finally fix diff names (#13136) 2020-10-14 07:49:33 +03:00
repository Push HEAD instead of master when initialising repositories (#13719) (#13740) 2020-11-28 16:59:32 -05:00
secret Attachments: Add extension support, allow all types for releases (#12465) 2020-10-05 01:49:33 -04:00
session Allow common redis and leveldb connections (#12385) 2020-09-28 00:09:46 +03:00
setting missing quotes in default value slice (#13550) (#13557) 2020-11-14 14:12:01 +02:00
ssh Add ssh certificate support (#12281) 2020-10-10 20:38:09 -04:00
storage Fix Storage mapping (#13297) (#13307) 2020-10-25 21:40:46 -04:00
structs Gitea 2 Gitea migration (#12657) 2020-10-14 07:06:00 +03:00
svg Fix filepath basename on Windows for SVG bindata (#12241) 2020-07-13 21:16:40 +01:00
sync
task Store task errors following migrations and display them (#13246) (#13287) 2020-10-24 13:02:36 +08:00
templates Use a simple format for the big number on ui (#12822) 2020-09-16 00:07:18 -04:00
test Macaron 1.5 (#12596) 2020-08-27 22:47:17 -04:00
timeutil
upload Update golangci-lint to version 1.31.0 (#13102) 2020-10-11 21:27:20 +01:00
user
util Update golangci-lint to version 1.31.0 (#13102) 2020-10-11 21:27:20 +01:00
validation
webhook Update golangci-lint to version 1.31.0 (#13102) 2020-10-11 21:27:20 +01:00