Charlie Posted October 26, 2020 Report Share Posted October 26, 2020 Hey all, Basically the title. I'm looking for a way to automatically sync with git any time a checkin is done with PlasticSCM. It's not a big deal for me to manually hit the sync button, but we have a few team members who I suspect will forget to do this regularly and I don't want to have to do big sync jobs every time I remember to do it. So, is there any way to do this? Thanks in advance! Link to comment Share on other sites More sharing options...
calbzam Posted October 27, 2020 Report Share Posted October 27, 2020 Hi, You can create a "after-ckeckin" trigger so the sync command is executed inside the trigger. Please check: https://www.plasticscm.com/documentation/triggers/plastic-scm-version-control-triggers-guide Regards, Carlos. 1 Link to comment Share on other sites More sharing options...
Charlie Posted October 27, 2020 Author Report Share Posted October 27, 2020 3 hours ago, calbzam said: Hi, You can create a "after-ckeckin" trigger so the sync command is executed inside the trigger. Please check: https://www.plasticscm.com/documentation/triggers/plastic-scm-version-control-triggers-guide Regards, Carlos. Exactly what I was looking for! Thank you! Link to comment Share on other sites More sharing options...
Ofirk Posted October 27, 2021 Report Share Posted October 27, 2021 Hi @Carlos I'm trying to do the same and when run the sync command (at this point manually) I get the following warning (?): cm sync "rep:_test@server:8087" git git://server/_test The branch /main has more than one head. Please merge it to be able to continue synchronizing when I check the git repo, it seems to be sync with latest changes. Am I doing something wrong? is it a false warning? Link to comment Share on other sites More sharing options...
calbzam Posted October 27, 2021 Report Share Posted October 27, 2021 Hi, Could you add the following parameter to the command? --dontcheckmultihead Regards, Carlos. Link to comment Share on other sites More sharing options...
Ofirk Posted October 27, 2021 Report Share Posted October 27, 2021 16 minutes ago, calbzam said: Hi, Could you add the following parameter to the command? --dontcheckmultihead Regards, Carlos. Yep, it helped. Sync done and finished successfully. Thanks! 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now