Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't remove fork remote branch when accept-work #171

Closed
extsoft opened this issue Aug 20, 2019 · 0 comments
Closed

Don't remove fork remote branch when accept-work #171

extsoft opened this issue Aug 20, 2019 · 0 comments

Comments

@extsoft
Copy link
Contributor

extsoft commented Aug 20, 2019

git push origin --delete {remote branch} must not be executed if {remote branch} is not in origin (starts origin/...).

alexbeatnik added a commit to alexbeatnik/elegant-git that referenced this issue Sep 29, 2019
Add check of remote branch to git-elegant accept-work command if remote
branch is not origin/... script do not delete it
Also add test for this functionality
bees-hive#171
alexbeatnik added a commit to alexbeatnik/elegant-git that referenced this issue Sep 29, 2019
Add check of remote branch to git-elegant accept-work command if remote
branch is not origin/... script do not delete it
Also add test for this functionality
bees-hive#171
extsoft added a commit that referenced this issue Nov 25, 2019
A user may accept work from forked remotes. In this case, it's possible
that a remote fork provides only pull permissions. And, in order to
prevent errors, the removal is enabled only for `origin` - is a user
accepts work, it has a write permissions to `origin`.

#171
@extsoft extsoft closed this as completed Nov 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant