1
1
Fork 0
mirror of https://gitea.com/gitea/tea synced 2024-05-09 17:26:08 +02:00
tea/modules
Norwin 819cc1ab21 Add `tea clone` (#411)
Adds a new subcommand to clone repos:
```
tea clone --login try --depth 1 norwin/test
tea clone gitea/tea
tea clone noerw/tea           # will set up `master` to track `upstream` remote
tea clone try.gitea.io/noerw/test # will automatically set --login
```

This is just a replacement for `git clone` with small benefits:
- [x] does not depend on `git`, as tea ships with go-git
- [x] spares you typing of URLs and autoselects https/ssh based on your login config
- [x] forked repos: set up origin + upstream remote

Co-authored-by: Norwin <git@nroo.de>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Reviewed-on: https://gitea.com/gitea/tea/pulls/411
Reviewed-by: Andrew Thornton <art27@cantab.net>
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: Norwin <noerw@noreply.gitea.io>
Co-committed-by: Norwin <noerw@noreply.gitea.io>
2021-10-18 20:09:27 +08:00
..
config Add `tea clone` (#411) 2021-10-18 20:09:27 +08:00
context Don't skip reading the local repo when `--repo` specifies a repo slug (#398) 2021-09-23 00:12:56 +08:00
git Add `tea clone` (#411) 2021-10-18 20:09:27 +08:00
interact Allow editing multiline prompts with external text editor (#429) 2021-10-14 22:36:08 +08:00
print fix lint regression (#425) 2021-10-05 01:43:06 +08:00
task Add `tea clone` (#411) 2021-10-18 20:09:27 +08:00
utils Add `tea clone` (#411) 2021-10-18 20:09:27 +08:00
workaround Introduce workaround for missing pull head sha (#340) 2021-03-08 03:45:50 +08:00