Latest phabricator hosted git repositories appear to error with 'failed to push some refs' without any error detail, even though the push works?
To reproduce (on a new install):
- Setup sshd wrapper to phabricator using provided script on port 2222, following diffusion hosting guide.
- Create the new git repository in phabricator and activate - leave settings to default.
- Clone this repository via phabricator URI
The clone works ok - however if I attempt to push, this errors - even though it is actually a success (if I commit any changes, these are pushed ok). Below example is when everything is in sync:
-bash-4.3$ git push origin master:master error: failed to push some refs to 'ssh://vcs-user@phabricator:2222/diffusion/13'
Verbose version:
-bash-4.3$ git push -v origin master:master Pushing to ssh://vcs-user@phabricator:2222/diffusion/13 To ssh://vcs-user@phabricator:2222/diffusion/13 = [up to date] master -> master updating local tracking ref 'refs/remotes/origin/master' error: failed to push some refs to 'ssh://vcs-user@phabricator:2222/diffusion/13'
I've tried this with a new git repository, latest version of phabricator. I can git clone the repository ok, but when I attempt to git push origin master, i get the error.
If I create a new file in the repo, the push works fine (not a fast-forward error) but then I still get the error:
-bash-4.3$ echo data-in-test-file > testfile3 -bash-4.3$ git add testfile3 -bash-4.3$ git commit -m "test file comment" testfile3 [master 9ac6b75] test file comment 1 file changed, 1 insertion(+) create mode 100644 testfile3 -bash-4.3$ git push origin master:master Counting objects: 3, done. Delta compression using up to 8 threads. Compressing objects: 100% (2/2), done. Writing objects: 100% (3/3), 294 bytes | 0 bytes/s, done. Total 3 (delta 0), reused 0 (delta 0) To ssh://vcs-user@phabricator:2222/diffusion/13 0f6f149..9ac6b75 master -> master error: failed to push some refs to 'ssh://vcs-user@phabricator:2222/diffusion/13' -bash-4.3$ git push origin master:master error: failed to push some refs to 'ssh://vcs-user@phabricator:2222/diffusion/13'
I've scoured the internet and there are many answers to this particular error, but all assume someone else committed first and this is a fast-forward error. This is not true here, and even if it was - my pushes aren't being rejected by remote.
What gives, what is stuck and causing this error? The process appears to be working fine other than this error. (I can see repository updates in phabricator).
If I check this phabricator-created repository out in git locally (not via vcs-user and the phabricator wrapper) push works fine with no error.
I can't fully say its a 'git specific issue' because if I remove phabricator from the equasion it all works fine..
- I've rm'd all hooks (both from checked out copy, and the copy hosted by phabricator) to exclude these as potentail causes.
- I've checked persmissions and vcs-user can checkout and push the the repository locally without error. (avoiding phabricator wrapper).
Am I being dim or is something more wrong afoot?