Jump to content

gitSync fails due to broken xLink


Gerald O
 Share

Recommended Posts

Hi,

i have a repo A that used a xlink to repo B in the past. When I try to gitSync to a git repo then the sync aborts with an error that says that a changeset <guid>@<repo B>@server:8087 does not exist. 

I also run a plastc gitserver and when I try to clone the repo then I get only the commits until the broken changeset and any newer changeset is omitted.

I searched and found the changeset in repo A and when I try to "open" the changeset I get the same error: The specified changeset <guid>@<repo B>@server:8087 does not exist.

since this changeset is pretty old and I don't need that anymore I tried to delete the changeset. But it is not possible.  

Is there a possibility to sync just the changes since a specific date? 
Or can I fix the broken xLink (any way to change the linked changeset guid)?
Or is there a way to delete the changeset?
 

Link to comment
Share on other sites

Hi,

- Gitsync only allows to sync the full repo history in both ways   Plastic <-> git.

- Please, don't remove changesets in the Plastic repo (or somehow rewrite the repo history), as it could break the sync:

https://www.plasticscm.com/documentation/gitsync/plastic-scm-version-control-gitsync-guide#GitSyncrestrictions

- You can use the following configuration in the "gitsync.conf" to ignore Plastic XLinks or git submodules:

eg:

ignore.xlinkRepository = xlinkedRepo
ignore.submoduleUrl = git@mygitserver/MySubmodule.git

Regards,

Carlos.

Link to comment
Share on other sites

Carlos, thanks for your suggestion. I tried with this gitsync.conf

[submodules]
ignore.xLinkRepository -> configToolPrototype@plasticserver:8087
ignore.submoduleUrl -> https://my.gitserver/scm/mo/server_configtool.git
https://my.gitserver/scm/mo/server_configtool.git -> configtoolPrototype@plasticserver:8087 writable:false relativeserver:false

I also tried with writable:true and/or relativeserver:true

But the error persists. 

Link to comment
Share on other sites

1 hour ago, calbzam said:

Hi,

If you want to ignore a Plastic SCM Xlink, please use the following:


[submodules]
ignore.xLinkRepository = configToolPrototype

Regards,

Carlos.

 

With this syntax I get an error that the config file is broken or corrupt. 
When I use 
[submodules]
ignore.xLinkRepository -> configToolPrototype


the error still occurs

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...