They will have to clone your git repository, create the image with the gifiletree:// support (I think there is a mistake in the script), and add the repository as a gitfiletree:// repository to see all your packages.
You can also use Gofer in the image: Gofer it url: 'gitfiletree://<path to git clone repo>/<subdirectory used for Pharo packages>/'; package: '<name of package>'; load Or on the command line. Thierry ________________________________________ De : Pharo-users [[email protected]] de la part de Bahman Movaqar [[email protected]] Date d'envoi : mardi 18 juin 2013 22:22 À : Any question about pharo is welcome Objet : Re: [Pharo-users] Pharo + git Thanks for the info. Now suppose I shared my code on git. How can others use it on their own image? On Tuesday 18 June 2013 20:14:21 GOUBIER Thierry wrote: > Yes, you can use git with Pharo. > > You need to get an extension called MonticelloFileTree, and you can add on > top of it a MonticelloFileTree-Git which really integrates into git. > > Main repository is there: > > https://github.com/dalehenrich/filetree > > And temporary instruction to try the latest gitfiletree:// stuff is (under > Linux) : > > git clone git://github.com/ThierryGoubier/filetree.git > mkdir pharo > cd pharo > wget -O- get.pharo.org/20+vm | bash > ./pharo Pharo.image config http://ss3.gemstone.com/ss/FileTree > ConfigurationOfFileTree --install=1.0.2 ./pharo Pharo.image eval --save > "Gofer new url: 'http://ss3.gemstone.com/ss/FileTree'; package: > 'MonticelloFileTree-Core' constraint: [ :version | version author = > 'ThierryGoubier' ]; load" ./pharo Pharo.image config > http://ss3.gemstone.com/ss/MetaRepoForPharo20 ConfigurationOfOSProcess > --install=stable ./pharo Pharo.image eval --save Gofer new url: > \'filetree://`pwd`/../filetree/repository/\'\; package: > \'MonticelloFileTree-Git\'\; load ./pharo Pharo.image eval --save > \(MCWorkingCopy hasPackageNamed: \'MonticelloFileTree-Git\'\) > repositoryGroup\ removeRepository: \( > \'filetree://`pwd`/filetree/repository/\' asUrl mcRepositoryAsUser: nil > withPassword: nil\)\;\ addRepository: \( > \'gitfiletree://`pwd`/filetree/repository/\' asUrl mcRepositoryAsUser: nil > withPassword: nil\) > > It's really to get the latest :) It will be simpler in the future. > > My workflow, for a git repo and pharo, is to have a Makefile with those > commands, a gitignore for the pharo subdirectory, and a make clean to > remove the pharo directory and download a fresh vm and image. It avoids > storing the pharo image and package cache inside the git repository, as I > used to do before ;) > > Thierry > > ________________________________________ > De : Pharo-users [[email protected]] de la part de Bahman > Movaqar [[email protected]] Date d'envoi : mardi 18 juin 2013 21:38 > À : [email protected] > Objet : [Pharo-users] Pharo + git > > Hi all, > > I've searched the net and found out the answer is most probably "no"; but it > doesn't hurt to ask here: > > Is it posssible to use `git' as the VCS backend for Pharo? -- Bahman Movaqar (http://BahmanM.com) ERP Evaluation, Implementation & Deployment Consultant PGP Key ID: 0x6AB5BD68 (keyserver2.pgp.com)
