GitFileTree: Playing Nice with FileTree

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

GitFileTree: Playing Nice with FileTree

Sean P. DeNigris
Administrator
If I have a filetree://path/to/canonical/local/repo repository, can I later point a GitFileTree repo to that folder? From the MC Browser +Repository menu, I only seem to be able to set the subfolder relative to the #imageDirectory, not the absolute path…
Cheers,
Sean
Reply | Threaded
Open this post in threaded view
|

Re: GitFileTree: Playing Nice with FileTree

Thierry Goubier
Hi Sean,

Le 03/09/2015 04:29, Sean P. DeNigris a écrit :
> If I have a filetree://path/to/canonical/local/repo repository, can I later
> point a GitFileTree repo to that folder? From the MC Browser +Repository
> menu, I only seem to be able to set the subfolder relative to the
> #imageDirectory, not the absolute path…

Are you sure about the local path? I know I played with a few things to
try to get local paths to work if used.

But gitfiletree://path/to/canonical/local/repo will work.

Thierry

Reply | Threaded
Open this post in threaded view
|

Re: GitFileTree: Playing Nice with FileTree

Peter Uhnak
Hi
 
(git)filetree://path/to/canonical/local/repo

This is a relative path:
(git)filetree:// + path/to/...

it should be:
(git)filetree:// + /my/absolute/path (triple slash)

As for FileTree/GitFileTree, due to windows issues my colleague and I were using both. I was commiting directly through gitfiletree, and he was comitting via filetree, and then applying git on top of that manually.

And if MCBrowser can't do it, maybe try it from playground... e.g.

Metacello new
    baseline: 'Project'; "or configuration maybe for non-git"
    repository: 'gitfiletree:///my/abs/path/repository';
    load.

Peter

On Thu, Sep 3, 2015 at 6:53 AM, Thierry Goubier <[hidden email]> wrote:
Hi Sean,

Le 03/09/2015 04:29, Sean P. DeNigris a écrit :
If I have a filetree://path/to/canonical/local/repo repository, can I later
point a GitFileTree repo to that folder? From the MC Browser +Repository
menu, I only seem to be able to set the subfolder relative to the
#imageDirectory, not the absolute path…

Are you sure about the local path? I know I played with a few things to try to get local paths to work if used.

But gitfiletree://path/to/canonical/local/repo will work.

Thierry


Reply | Threaded
Open this post in threaded view
|

Re: GitFileTree: Playing Nice with FileTree

Sean P. DeNigris
Administrator
In reply to this post by Thierry Goubier
Thierry Goubier wrote
Are you sure about the local path?... gitfiletree
Sorry, I was confuing MCFileTreeGitRepository and MCFileTreeGitRemoteRepository. Furthermore, they both seem to handle absolute paths just fine! I thought that #name: in the creation template of the latter would just take a subdirectory, but putting an absolute path worked :)
Cheers,
Sean