Le 07/03/2015 20:12, Sean P. DeNigris a écrit :


Thierry Goubier wrote
Your snippet (with corrected package name ;)) was just what I was looking
for:
     Gofer it
        url: 
'gitfiletree://github.com/rohitsukhwal/HelloWorld.git?protocol=git';
        package: 'My-Spec-Tutorial';
        load

I may have spoken a tiny bit too soon. Why does the above snippet create a
local filetree repo instead of a remote git repo like the following?
     MCFileTreeGitRemoteRepository
        location: '[email protected]:rohitsukhwal/HelloWorld.git'
        name: 'sean'
        subdirectory: ''
        branch: ''.

Both are one and the same, but created via two different approaches.

MCFileTreeGitRepository knows how to both link to an on-disk repo (local gitfiletree url) and to clone a remote repository... But the Monticello GUI only allow one type of creation per class of repository.

So if a MCFileTreeGitRepository addition in the MC GUI opens a file dialog to select a local directory, you need another class (the MCFileTreeGitRemoteRepository) to allow you to enter the description of a remote git repository at addition.

...

Thierry

Reply via email to