teqneers/PHP-Stream-Wrapper-for-Git

Implementation of Push

brianlayman opened this issue · 2 comments

I noticed that there is no implementation of git push.

I added my own method to the repository and binary classes but interestingly enough I got an error:

'Cannot push "/current/path" [Pushing to ssh://git@example.com/~/example.git
Permission denied, please try again.
Permission denied, please try again.
Permission denied (publickey,gssapi-with-mic,password).
fatal: The remote end hung up unexpectedly]

I was wondering if this is why push was never implemented. Can you provide any information about this or the error?

Thank you for any assistance.

I've now got the push implemented. The error, in the end, was a result of a permissions issue on id_rsa.

I'll fork the repo and add the command unless there's a reason you don't want to include push.

Closed because there hase been opened a separate ticket for this issue.