Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Pushing to git repository located on an RDP client

Tags:

git

macos

rdp

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?

  • Microsoft RDP: Version 8.0.6 (Build 24869)
  • Remote (VM) git: 2.5.3.windows.1
  • OSX: Mavericks (OS X 10.9.5 (13F1112))
like image 898
Bryan P Avatar asked Nov 10 '22 04:11

Bryan P


1 Answers

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.

like image 51
Bryan P Avatar answered Nov 15 '22 04:11

Bryan P