Using GIT for both gallery3 and gallery3-contrib

thebrandons

Joined: 2008-11-08
Posts: 28
Posted: Mon, 2009-11-02 21:22

I would like to keep up with the latest changes of both gallery3 and gallery3-contrib using GIT. http://codex.gallery2.org/Gallery:Using_Git has some information on this but still have a question. Can I use one of the approaches listed below (Prefer option 1).

1) "git clone" gallery3 and then "git clone" gallery3-config inside the module directory of gallery3. Basically making a git clone inside another git clone. If I do a git pull in gallery3 would I update both gallery3 and gallery3/module/gallery3-config or would my computer blow up:)

2) If above is not possible can I perform a "git clone" of gallery3-config to somewhere (ie. /var/gallery3-config/?). Then create a simlink from the ../gallery3/module/gallery3-config -> /var/gallery3-config. I guess this might work, but /var/gallery3-config is definitely out of the web directory structure?

Thanks,
Kevin

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Mon, 2009-11-02 21:31

See this part of that page for how one developer has setup his environment:
http://codex.gallery2.org/Gallery:Using_Git#Target_development_environment

What I've done is this:

/gallery3 < I use git pull to keep this up to date
/gallery3/gallery-contrib/ < I then cd to gallery-contrib and use git pull here to keep this up to date

So my structure looks like this:

/gallery3/
/gallery3/gallery-contrib/modules/
/gallery3/gallery-contrib/themes/

and when I want to use a module or theme that's in contrib, I create a symlink in my gallery3/modules/ directory to that module that's in contrib.

You could probably create an alias to make one command do it all
http://codex.gallery2.org/Gallery:Git_FAQ

So basically I'm doing a combination of the 2 options you describe.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here