We have fairly granular capabilities to send string messages back to clients on push events via the various githooks. Being that collaborative text editing isn't very well-suited to the issue queue, I've added a section to the phase 2 list where we can work on them. This issue is a placeholder to be closed once we've gotten together enough of the scenarios over there to satisfy phase 2.
Here's an initial list of the scenarios we may want to write response messages for:
- Successful push (probably nothing extra over what git does already)
- Rejected push - push would result in a non-fast-forward merge (any repo)
- Rejected push - user has no perms at all on the target repo (project repo)
- Rejected push - user has perms on the target repo, but not on the target branch (project repo)
- Rejected push - user's git privileges have been temporarily suspended (any repo)
- Rejected push - user's git privileges have been permanently suspended (any repo)
Note that I have no idea how well various different clients will respond to these messages (iirc, this is a problem we currently have with CVS), so it may turn out to be imprudent that we use any of these at all.
Comments
Comment #1
webchickTagging. This might be a good task for a volunteer to tackle.
Comment #2
sirkitree commentedLet's define what some of these mean to a user.
(none)
The repo you are trying to push to has changes in it that your local repository doesn't have. Please (recommended method? fetch rebase/merge?) and try to push again.
Pretty self explanatory. But maybe the message should reflect what the user should do to get perms?
We probably don't have access to "why" but we can give a message to give the user a clue as to how to get these back.
Comment #3
webchickFixing tag.
Comment #4
sdboyer commentedShould be phase 2.
Comment #5
eojthebraveIt might be nice to include links to pages on d.o. where we give a better explanation of what just happened and how to resolve the problem, at least in the case of rejections. That would allow us to keep the messages we send nice and succinct, but allow users to have a quick and easy place to get more information about resolving their issues.
Comment #6
eliza411 commentedTagging for consideration in git sprint 5
Comment #7
tizzo commentedAssigning to myself to follow up on this and ensure that we come to a real conclusion on it.
Comment #8
eliza411 commentedGetting this out of the infra queue
Comment #9
eliza411 commentedTagging Git Sprint 9
Comment #10
mikey_p commentedI'm not sure why this issue is in the VC Project queue as there is nothing project specific in it.
Comment #11
sdboyer commentedThis has all been handled elsewhere at this point. Not super-organized, but it has, so marking this done.