I have a bare local git repository on my laptop (OSX) that I treat as the origin for a clone located on a remote (Window 7) virtual machine over remote desktop (RDP).
To start, I redirected the laptop repository folder in the RDP configuration so it looks like a folder to the virtual machine. With this I have no problem cloning and pulling from the laptop repo. But when I try to push I get the following error:
C:\Proj\repo>git push origin
Counting objects: 9, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (9/9), done.
remote: error: insufficient permission for adding an object to repository database ./objects
remote: fatal: failed to write object
fatal: sha1 file '<stdout>' write error: Broken pipe
error: failed to push some refs to '//tsclient/bare_for_rdp'
Despite the error, I don't think it is a permission issue on the laptop, since I have made the entire directory world writable. (chmod -R a+w *
). See this post
Also I don't think the broken pipe has any thing to do with buffer size issues since there are no particularly big files.
Any ideas for how to get this to work?
In this case, I was able to work-around the problem by accessing our GitHub enterprise directly from the remote machine. This required working through some connectivity issues with the IT team, but is now working well.
Still curious about more direct ways to commit over RDP and will gladly change acceptance to a good, more direct answer to the original question.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With