I’ll answer my own question in case anyone else wonders.
I removed the submodules from the main git project, but left the code in the subdirectories, temporarily moved the *.git folders of the sub projects out of the tree,
Set up the synchronized project so that everything was synced - including the not-any-more-submodules. then copied back the *.git folders in the subdirs.
PTP sees one large project with subdirectories, but I can still cd into them and do git operations in the sub trees. I can live without git thinking they’re submodules as I check out branches in each by hand
anyway.
Seems reasonably stable and I have it synced on several machines without problem. I suspect I could have left the *.git stuff in place in the subdirs but I moved it away before the first sync just in case ptp
noticed it and tried to do anything funny. (actually, when I synced it on the second machine it was still there, so it probably doesn’t hurt).
JB
From: ptp-user-bounces@xxxxxxxxxxx
[mailto:ptp-user-bounces@xxxxxxxxxxx] On Behalf Of Biddiscombe, John A.
Sent: 22 November 2013 14:06
To: ptp-user@xxxxxxxxxxx
Subject: [ptp-user] synchronized project and git submodule
I’m having trouble getting a synchronized project to sync when I have a git submodule inside my main git project.
Errors vary depending on what level of trickery I use to try to get it working, but in general it’s a sync fail on the subdirectory representing the submodule.
Is it possible to use submodules?
thanks
JB
--
John Biddiscombe, email:biddisco @.at.@ cscs.ch
http://www.cscs.ch/
CSCS, Swiss National Supercomputing Centre | Tel: +41 (91) 610.82.07
Via Trevano 131, 6900 Lugano, Switzerland | Fax: +41 (91) 610.82.82