My favorites | Sign in
Project Home
Search
for
UsingGit  

Phase-Implementation, Deprecated
Updated Apr 5, 2009 by leidel

Using Git with Pinax

If you choose to use git, who wouldn't, read this to learn how to setup Pinax. Unfortunately checking out the Pinax source code is not as simple as a git svn clone . Pinax contains some svn:externals that just do not work with only a git-svn clone . Go and grab git-svn-clone-externals from http://github.com/andrep/git-svn-clone-externals/tree/master and place it on your PATH and chmod +x it. Once you have done that it is as simple as doing:

git svn clone http://svn.pinaxproject.com/pinax/trunk pinax
cd pinax/apps/external_apps
git-svn-clone-externals

You are all set. git-svn-clone-externals is very basic in nature. It simply:

  • git svn clone each external into a .git_externals/ directory.
  • symlink the cloned repository in .git_externals/ to the proper directory name.
  • add the symlink and .git_externals/ to the .git/info/excludes/ file, so that you're not pestered about it when performing a git status.
Comment by nicola.l...@gmail.com, Jul 14, 2008

Believe it or not, some of us prefer Mercurial to Git. :-P For us, the script attached to the  issue #17  works a charm.

Comment by nicola.l...@gmail.com, Aug 15, 2008

And the one attached to  issue #32  works even better, if I may say so myself. ;-)

Comment by luftyl...@gmail.com, Aug 26, 2008

A few new apps have been introduced recently that aren't accounted for in the steps above.

The following commands will pull in the recently added dependencies:

git svn clone http://django-avatar.googlecode.com/svn/trunk/avatar/ django-avatar
git svn clone http://django-arcade.googlecode.com/svn/branches/int_pk django-arcade
git svn clone http://django-social-economics.googlecode.com/svn/trunk/django-social-economics/swaps/ swaps
git svn clone http://django-locations.googlecode.com/svn/trunk/locations/ locations

Additionally, a few dependencies that were relying on branches need to be pulled from their respective trunk repos to incorporate the signals refactor.

git svn clone http://django-messages.googlecode.com/svn/trunk/ django-messages
git svn clone http://django-photologue.googlecode.com/svn/trunk/ django-photologue

The following commands will symlink the new dependencies. Also adds the missing symlink for crashlog.

ln -s ~/Development/django-apps/django-avatar/avatar/ avatar
ln -s ~/Development/django-apps/django-arcade/ arcade
ln -s ~/Development/django-apps/swaps/ swaps
ln -s ~/Development/django-apps/django-locations locations
ln -s ~/Development/django-apps/django-crashlog/crashlog locations
Comment by luftyl...@gmail.com, Aug 26, 2008

The final symlink name in the last command above should be "crashlog"

Comment by mr.pfp...@gmail.com, Sep 14, 2008

i think it's a bit outdated. Couldn't make pinax work following this howto. Maybe it's because of some svn:externals differences after django refactoring. //May be//

Thanks anyway

Comment by istru...@gmail.com, Oct 23, 2008

Another update

ln -s ~/Development/django-apps/django-command-extensions/django_extensions/ extensions
Comment by project member bros...@gmail.com, Jan 19, 2009

Just a quick note that the comments above this comment are now outdated :)


Sign in to add a comment
Powered by Google Project Hosting