archi-modelrepository-plugin icon indicating copy to clipboard operation
archi-modelrepository-plugin copied to clipboard

[Feature Request] Local Git repositories

Open Petrolevb opened this issue 5 years ago • 6 comments

It would be nice to be able to add a remote that is on local computer (URL should be able to manage /home/user/anything or C:\Users\anything)

Petrolevb avatar Apr 05 '19 18:04 Petrolevb

Is there some news about this feature? As git support file repository, it would be nice to store data without a server.

cgoguyer avatar Oct 28 '19 12:10 cgoguyer

No news. It hasn't been implemented (yet). I've been too busy with other Archi features.

Phillipus avatar Oct 28 '19 12:10 Phillipus

+1. I also need this feature

smirnoww avatar Feb 04 '20 10:02 smirnoww

A rough workaround to this is to manually create a git repository on your pc and then use file:///c:/localrep/.git/ as the URL with a dummy username/password

c: cd
mkdir c:\localrep cd localrep git init Inititalized empty Git repository in c:/localrep/.git/

then use file:///c:/localrep/.git/ when creating a repository in Archi

This, by default creates the git repository on your local PC's (I'm using Windows) %APPDATA%/Roaming directory - but if you change this to a better location then it should work.

And then you get the benefit of the commit and branching features.

The only trouble is, how do you get your existing XML based models into the new model - that old chestnut!

And I've not tested this on a network share with multiple people though...

GuyWicks avatar Feb 12 '20 14:02 GuyWicks

@GuyWicks : In fact, you should be able to use a FILE based URL even at the beginning, ie. when importing the model into the workspace. Of course the publication will fail, but the repository will have been created and will be usable for later commits (at least it used to work 2 years ago the last time I tried).

jbsarrodie avatar Feb 12 '20 19:02 jbsarrodie

I've setup a file repo on a remote share (git init --bare) the import, commit, refresh button work but I get an error with the publish button: "error during unpacking on remote end: error cannot lock pack". But If I use the git push command in my local repo it works. The error appear only within archi UI.

cgoguyer avatar Mar 03 '20 09:03 cgoguyer

+1. I also need this feature.

aheizenreder avatar Nov 03 '23 08:11 aheizenreder

You can do this now. Here's an example:

  1. Create dir "/Users/username/repo"
  2. cd Users/phillipus/repo
  3. git init --bare
  4. In Archi, "Import Remote Model To Workspace"
  5. Add URL `file:////Users/username/repo/"
  6. Add any user name and password
  7. Click OK

Phillipus avatar Nov 03 '23 08:11 Phillipus