Add tea clone
#411
Labels
No Label
kind/breaking
kind/bug
kind/build
kind/dependency
kind/deployment
kind/docs
kind
enhancement
kind
feature
kind/proposal
kind
question
kind
refactor
kind/security
kind/testing
kind/translation
priority/critical
priority/high
priority/low
priority/medium
reviewed/duplicate
reviewed/invalid
reviewed/wontfix
skip-changelog
status/blocked
status/has-backport
status/has-pull
status/needs-backport
status/needs-feedback
status/needs-reviews
status/wip
upstream/gitea
upstream/sdk
No Milestone
No Assignees
4 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: gitea/tea#411
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "noerw/tea:add-repo-clone"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Adds a new subcommand to clone repos:
This is just a replacement for
git clone
with small benefits:git
, as tea ships with go-git@ -0,0 +1,74 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
2021
Could we only input owner name and repo name? Or include the site name.
Add `tea repo clone`to WIP: Add `tea repo clone`WIP: Add `tea repo clone`to Add `tea repo clone`@lunny you mean
tea repo clone gitea.com/gitea/tea
ortea repo clone gitea/tea
?I think that's nicer too, but using
--repo
is consistent with the othertea repo *
commands, they all don't make use of arguments. Maybe a change to all the repo subcommands is needed.. see #430Hm, it seems the command is not even shorter than
git clone
.tea clone gitea/tea
if there is only one login is OK.If there are more than 1 sites, and a
--login
is not given, we can list all sites which contains the repository.i.e. I have two logins, one is
https://gitea.com
another ishttps://try.gitea.io
. Ifgitea/tea
is only athttps://gitea.com
, thenwill smartly clone it from https://gitea.com.
And once we also created a repo
gitea/tea
in https://try.gitea.io ,Then the command will list all logins like below:
Then if you type 1 or 2 or just enter to use default one. The clone will begin.
--repo
Add `tea repo clone`to Add `tea clone`