Why do phabricator hosted git repositories appear to error with 'failed to push some refs' without any error detail, even though the push works?
Event Timeline
This is a git error, isn't it? That is, if you're not using Phabricator to access the repository, the same error occurs?
It is definitely a git error - but if i use git to access the repostory directly on the hosting server (clone it from the actual stored repo path) that works fine, and I can then push ok with no errors, which leads me to think git is working ok.
Smells like something wrong with the push vi ssh / wrapper mechanism via phabricator.
(I'm not super adept at troubleshooting git, so I can't help much more on this question).
This is not an expected behavior.
See Contributing Bug Reports for help on filing bug reports.
You should check if the user has write access to the folder where the repositories are stored. It happened to me (I wasn't using Phabricator). I can clone because I have read to access but can't push because I didn't have write permission.
Thanks for feedback so far :)
vcs-user definitely has write access to where the repo's are stored - I can push to the repository fine, it just then gets that error! - Weird.
To double check I also su - vcs-user, and then checked out the repository as that user, and did a push without the error appearing.
(Though the error appears, everything seems to work fine)
It would probably help if I knew what 'refs' git was trying to push and failed on. Normally git is meant to tell you what failed if I read all the git pages/help - but it seems git isn't telling me anything about the failure!
I've tried different versions of git (another machine has the latest) - but same happens there.