0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-12-26 10:54:38 +01:00
gitea/modules
John Olheiser 6715677b2b Push to create repo (#8419)
* Refactor

Signed-off-by: jolheiser <john.olheiser@gmail.com>

* Add push-create to SSH serv

Signed-off-by: jolheiser <john.olheiser@gmail.com>

* Cannot push for another user unless admin

Signed-off-by: jolheiser <john.olheiser@gmail.com>

* Get owner in case admin pushes for another user

Signed-off-by: jolheiser <john.olheiser@gmail.com>

* Set new repo ID in result

Signed-off-by: jolheiser <john.olheiser@gmail.com>

* Update to service and use new org perms

Signed-off-by: jolheiser <john.olheiser@gmail.com>

* Move pushCreateRepo to services

Signed-off-by: jolheiser <john.olheiser@gmail.com>

* Fix import order

Signed-off-by: jolheiser <john.olheiser@gmail.com>

* Changes for @guillep2k

* Check owner (not user) in SSH
* Add basic tests for created repos (private, not empty)

Signed-off-by: jolheiser <john.olheiser@gmail.com>
2019-12-15 10:49:52 +08:00
..
auth Branch protection: Possibility to not use whitelist but allow anyone with write access (#9055) 2019-12-03 20:08:56 -05:00
avatar
base
cache
charset deps: update and fix chardet import (#9351) 2019-12-14 02:15:48 +02:00
context
convert [Bug] [API] Add language to user api (#9215) 2019-11-30 11:18:40 -05:00
cron
generate
git Remove SavePatch and generate patches on the fly (#9302) 2019-12-13 23:21:06 +01:00
gitgraph
graceful Add comment to exported function WindowsServiceName (make revive) (#9241) 2019-12-03 19:16:29 -05:00
highlight
httplib
indexer DefaultBranch needs to be prefixed by BranchPrefix (#9356) 2019-12-14 21:29:41 +08:00
lfs Make repository management section handle lfs locks (#8726) 2019-12-12 21:18:07 +08:00
log Log: Ensure FLAGS=none is -1 (#9287) 2019-12-07 23:36:47 -05:00
markup Markdown: Sanitizier Configuration (#9075) 2019-12-07 14:49:04 -05:00
metrics
migrations Move some repository methods from models to modules/repository (#9353) 2019-12-14 18:30:01 +01:00
notification fix issue indexer not triggered when migrating a repository (#9332) 2019-12-12 23:46:43 +02:00
options
password
pprof
private
process Graceful: Cancel Process on monitor pages & HammerTime (#9213) 2019-11-30 16:40:22 +02:00
public
recaptcha fixed reCAPTCHA URL (#9083) 2019-11-22 08:03:45 +00:00
references Alternate syntax for cross references (#9116) 2019-12-01 15:57:05 +02:00
repofiles File Edit: Author/Committer interchanged [BugFix] (#9297) 2019-12-09 21:11:24 +08:00
repository Move some repository methods from models to modules/repository (#9353) 2019-12-14 18:30:01 +01:00
search Move modules/indexer to modules/indexer/code (#9301) 2019-12-10 14:29:40 +01:00
secret
session
setting Push to create repo (#8419) 2019-12-15 10:49:52 +08:00
ssh
structs [API] extend StopWatch (#9196) 2019-12-11 23:23:05 -05:00
sync
task
templates
test
timeutil
upload
user
util
validation
webhook Make consistent links to repository in the Slack/Mattermost notificiations (#9205) 2019-11-30 12:23:37 +02:00