Le 17/04/2016 16:59, Peter Uhnák a écrit :
'gitfiletree://github.com/dalehenrich/filetree:pharo5.0/repository/?where=/home/username/project/filetree <http://github.com/dalehenrich/filetree:pharo5.0/repository/?where=/home/user...>' (is that a correct url syntax?)
Isn't this overloading the url a bit?
;) That's why I described the url. But you may be indicating below a better counter argument: $WHERE should not be a feature of the url; it is an element of the local copy (in short, you don't want the repository owner to control the $WHERE).
Why not:
Metacello new baseline: 'FT'; repository: 'gitfiletree://github.com/dalehenrich/filetree:pharo5.0/repository <http://github.com/dalehenrich/filetree:pharo5.0/repository>'; workingDirectory: '/home/username/project/filetree'; (or #localClone, or #localRepository, or #something) load
Or (using git terminology):
Metacello new baseline: 'FT'; repository: '/home/username/project/filetree'; origin: 'gitfiletree://github.com/dalehenrich/filetree:pharo5.0/repository <http://github.com/dalehenrich/filetree:pharo5.0/repository>'; load
Yes, this would work. The first one is closer to the way the MCFileTreeGitRepository API represent it, but both may well already be usable (read: already implemented on the GitFileTree side) as soon as Metacello get that API. Thierry
On Sun, Apr 17, 2016 at 4:47 PM, Thierry Goubier <thierry.goubier@gmail.com <mailto:thierry.goubier@gmail.com>> wrote:
Le 17/04/2016 16:31, Damien Pollet a écrit :
Is there a convenient way to control where the clone will be made in the local filesystem? Meaning: using something else than the implicit value for $WHERE:
git clone $GITHUB_CLONE_URL $WHERE
In fact it is there, but indirect (you can give a $WHERE when you create a remote git repository with Monticello: it's the name parameter).
But, if we focus on the $WHERE more directly, what would you like?
- A per-url/per-project SWHERE? It could make the url syntax a bit hard (there is already a $: to indicate branch and, implicitely, subdirectory inside the git repo) but there is nothing forbidding it. Something like: 'gitfiletree://github.com/dalehenrich/filetree:pharo5.0/repository/?where=/home/username/project/filetree <http://github.com/dalehenrich/filetree:pharo5.0/repository/?where=/home/user...>' (is that a correct url syntax?)
- Note that I have a procedure for having the Pharo build environment integrated inside the git, if you'd like (i.e. git clone download also the build command for the right Pharo image: this is my professional setup).
- A per-image $WHERE?
- Reusing the Monticello default local repository directory setting? (current behavior, actually).
Thierry