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

Mastodon Collaborative - Useful error message when pushing to a protected main branch #8

Open
2 tasks
maarzt opened this issue Nov 6, 2023 · 0 comments

Comments

@maarzt
Copy link
Collaborator

maarzt commented Nov 6, 2023

User story

A user creates a new git repository (on Gitlab) and shares Mastodon project using the mastodon git collaboration tools. He invites his colleagues to the git repo. A colleague clones the repo and pushes the first commit. Currently the push operation will fail because the master branch is protected by default. However the error message that the user gets has no indication of the problem.

Solution

The git command line tool produces a useful error message that indicates the the master branch is protected. Could we have a similar error message when pushing with mastodon?

TODOs

  • See if jgit allows to produce an equally good error message as the git command line tool.
  • Implement a better error message, that helps the user to identify an fix the problem.
@maarzt maarzt transferred this issue from mastodon-sc/mastodon-tomancak Mar 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant