[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ptp-user] New PTP user with Synchronization issues
- From: John Eblen <jeblen@xxxxxxx>
- Date: Wed, 16 May 2012 10:18:38 -0400
- Delivered-to: firstname.lastname@example.org
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=9R1AYxG92kQg7brXaEgHrhb2Sb+07bVSNkguc8G3Vz8=; b=C7dQ2WSrKlPlPhRcwq/Hy0ZSVrxYG1Cy8WVZoHecjN02vaXp0kIBrv4aV7hUXfRtOh eQWlRkOP7pxKLF8m1SBnRdr6lkLdF1f1Jpm6RFcdW6A3PXxry5/CHyrxg4sLTiIu19Jn frDNrJoB3l0MO1huo0OwGFSwlgz/kW2rwQ1MOoVobscGWsKrA/xm7dY60M+tW4Eo3S3u dbvsplnlSwFH8PIYsx9pUAtfX/dHnPGkgluImDhJ3I0zJsXrijgVTc4xKadPTX1Tw/2g gy/FfvG3IVaSPt27YHBbXvj9CZPfREwM3xciwzGPwce2ZfDbtYbyCUHY+icygQGAeZZA AZNw==
Synchronized projects create and use a separate Git repository (in the folder ".ptp-sync") to avoid conflicts with the user's
version control. Files are added to this repository from the project's directory, not from any existing Git repository. Since
Windows file permissions are not compatible with UNIX-style file permissions, that information is lost when files go from
Git to Windows and back to Git.
As a workaround, you can change the file permissions on the remote machine to their correct values and then sync. This will
set the execute permissions correctly in the repository. (It is also possible to set the permissions using the original repository,
if you are fluent with Git.)
Regarding the one-way sync, can you use the file filtering mechanism to filter files on the remote server that you do not want
downloaded to your laptop?
On Tue, May 15, 2012 at 4:29 PM, Dale Davis <shimrot2@xxxxxxxxx>
I recently install PTP on eclipse to try using the remote sync support, but ran into a few difficulties and one which is a show stopper. Hopefully there is some setting which can fix this:
The basic problem is that binary files synced to the remote machine end up without the original unix permissions.
My eclipse host machine is a Windows 7 laptop. Eclipse is Indigo Service Release 2 with CDE. I also have egit 1.3.0 installed and PTP 5.0.7.
My remote server is a Linux el5 Linux ...2.6.18-274.7.1.el5PAE #1 SMP Mon Oct 17 12:05:46 EDT 2011 i686 i686 i386 GNU/Linux, though I've tried a 32bit, or 64bit kernels and even older editions.
The remote server git version is 1.7.1
My project is an egit clone originally from a linux machine, I create a project, then "new->Convert C/C++ or Fortran Project to a Synchronized Project" . That all seems to go well and I "Sync all Now" and see the workspace files placed on my remote machine fine. However, they all seem to have 644 unix permission bits, regardless of the original values.
If I instead do a git clone operation on the remote server, from the repository on my Windows 7 laptop, the workspace files do have the correct permission bits.
Any ideas what is wrong? Without the permission bits this syncronization is not useful.. And, I'm apparently unable to use the remote file support rather than sync because it precludes other use of git (according to a comment I see in a tutorial).
If possible, I'd also like to do a one way synchronization as well. That is, I just want to push changes from the eclipse session to the remote server, I really don't want the changes on the server to be shadowed back. Is there a sync mode for that?
ptp-user mailing list