git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks push -v --tags origin feature/SCAFHELP-3202:feature/SCAFHELP-3202
Pushing to ssh://itstash.sophos.net:7999/mule/prc-msp-usage.git
remote: Rejected by YACC
remote:
remote: An error has occurred with the commits you are trying to push.
remote:
remote: refs/heads/feature/SCAFHELP-3202: d6371117df1: Sophos JIRA Cloud: Internal error: Unexpected response received. Status code: 401. Check server logs for details.
remote:
remote: See SCAFHELP Jira board for assistance with any push error.
remote:
remote:
To ssh://itstash.sophos.net:7999/mule/prc-msp-usage.git
! [remote rejected] feature/SCAFHELP-3202 -> feature/SCAFHELP-3202 (pre-receive hook declined)
error: failed to push some refs to 'ssh://itstash.sophos.net:7999/mule/prc-msp-usage.git'
Completed with errors, see above.
Did you find any answer for this? We are having a similar issue with our Bitbucket, and I am unable to find any cause or fix.
In our case, it was the user who is accessing the repo in Stash does not have the proper access to Jira, and could not get the ticket info. That was preventing YACC from running the pre-receive hook, because YACC acts on behalf of the user.
Not sure if that's the same issue OP was having, but this is what indicated the user's JIRA access problem:
JIRA Cloud: Internal error: Unexpected response received. Status code: 401. Check server logs for details
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.