Repo flag ignores local repo for login detection #191
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
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: gitea/tea#191
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
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?
#178 has reintrocuded the old bug #51:
curGitRepoPath()
should be used to setlogin
, also whenrepoValue
is non-empty.@noerw
-r
and-R
are not the sameYes, i know, this is about
-r
/--repo
.do #193 solve this issue too?!?
No this is not adressed by that PR. Sorry for the confusion with multiple bugs in one issue..
how login detection should work:
A. case
--repo
set:B. case
--repo
not set:in any case if
-l
is set overide detected/not detected login and use specified one@noerw so you like to change behaviour of case A.3 ?
to still determine login if $PWD is inside git repo
-> at this point we should ad a smal flow chart documentation how login & repo path is determinated
PS: A.3 also use current loged in user as owner if no owner was set ...
@6543 yes i want case A.3 to be
But IMO we should drop support for either A.2 or A.3.:
With this overload,
--repo
is very confusing (and I didn't even know that it supports file paths... ?)Looking at usecases to help deciding if we can drop support for one case:
--repo path/to/local/repo
:--repo gitea/tea
tea issues --repo noerw/tea
1.i. is just sugar for
cd path/to/local/repo
; tea ...`, while 2.i enables use cases that wouldn't be possible without it.