Re: I don't want the .git directory next to my code.

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Mike <fromlists@...>
Cc: Linus Torvalds <torvalds@...>, <git@...>
Date: Friday, January 18, 2008 - 4:41 am

Mike wrote:

We develop several different PHP packages. We have a test-server where
pandemonium reings with regards to .git directories and which branches
are checked out where. We also have a release process, and .git dirs
*never* end up on production servers.

The release-process is this: "git tag -s $tag_name; git push $tag_name".
The update-hook then marks the repo as having a new release and a cron-
job, running every 5 minutes, takes care of updating our production
servers. It took me all of 30 minutes to hack up, and not only does it
make sure we never publish the .git directory, it also makes it really,
really easy for <insert-non-git-savvy-customer-X> to report a version in
which he or she has spotted a bug.


You accomplish that by making sure only stable and signed versions hit
the deployment server(s). Manual scp/rsync/ftp-mirroring of the testing
server's docroot is just plain stupid.


Well, it was originally intended to manage the Linux kernel, but it's
written in such a way as to be capable of competently manage just about
anything.



Those problems aren't "all the scm's in the world store their meta-data
somewhere!" though, and the ability to tar up a working-tree and get the
git-directory too is not always a bad thing. It's just your release
process that needs to eliminate the manual step there so you never copy
it by accident. That's why people write small and simple scripts though.

-- 
Andreas Ericsson                   andreas.ericsson@op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: I don't want the .git directory next to my code., Jakub Narebski, (Wed Jan 16, 9:13 am)
Re: I don't want the .git directory next to my code., Brian Downing, (Wed Jan 16, 8:59 pm)
Re: I don't want the .git directory next to my code., Randal L. Schwartz, (Wed Jan 16, 9:35 pm)
Re: I don't want the .git directory next to my code., Martin Langhoff, (Wed Jan 16, 10:59 pm)
Re: I don't want the .git directory next to my code., Randal L. Schwartz, (Thu Jan 17, 1:44 am)
Re: I don't want the .git directory next to my code., Matthieu Moy, (Wed Jan 16, 5:59 am)
Re: I don't want the .git directory next to my code., Johannes Schindelin, (Wed Jan 16, 6:36 am)
Re: I don't want the .git directory next to my code., Matthieu Moy, (Wed Jan 16, 7:59 am)
Re: I don't want the .git directory next to my code., Johannes Schindelin, (Wed Jan 16, 8:12 am)
Re: I don't want the .git directory next to my code., Matthieu Moy, (Wed Jan 16, 8:25 am)
Re: I don't want the .git directory next to my code., Johannes Schindelin, (Wed Jan 16, 8:45 am)
Re: I don't want the .git directory next to my code., Junio C Hamano, (Wed Jan 16, 1:40 pm)
Re: I don't want the .git directory next to my code., Johannes Schindelin, (Wed Jan 16, 1:52 pm)
Re: I don't want the .git directory next to my code., Nguyen Thai Ngoc Duy, (Wed Jan 16, 12:03 am)
Re: I don't want the .git directory next to my code., David Symonds, (Wed Jan 16, 12:06 am)
Re: I don't want the .git directory next to my code., Sam Vilain, (Wed Jan 16, 9:42 pm)
Re: I don't want the .git directory next to my code., Daniel Barkalow, (Wed Jan 16, 12:44 am)
Re: I don't want the .git directory next to my code., Daniel Barkalow, (Wed Jan 16, 12:13 am)
Re: I don't want the .git directory next to my code., Wayne Davison, (Wed Jan 16, 6:33 pm)
Re: I don't want the .git directory next to my code., Bert Wesarg, (Wed Jan 16, 9:21 am)
Re: I don't want the .git directory next to my code., Johannes Schindelin, (Wed Jan 16, 6:37 am)
Re: I don't want the .git directory next to my code., Randal L. Schwartz, (Tue Jan 15, 11:50 pm)
Re: I don't want the .git directory next to my code., Neil Macneale, (Wed Jan 16, 1:27 am)
Re: I don't want the .git directory next to my code., Linus Torvalds, (Wed Jan 16, 2:15 pm)
Re: I don't want the .git directory next to my code., Linus Torvalds, (Wed Jan 16, 10:38 pm)
Re: I don't want the .git directory next to my code., Junio C Hamano, (Wed Jan 16, 3:23 pm)
Re: I don't want the .git directory next to my code., Linus Torvalds, (Wed Jan 16, 2:25 pm)
Re: I don't want the .git directory next to my code., Andreas Ericsson, (Fri Jan 18, 4:41 am)
Re: I don't want the .git directory next to my code., Martin Langhoff, (Thu Jan 17, 5:05 pm)
Re: I don't want the .git directory next to my code., Jeff King, (Thu Jan 17, 11:17 am)
Re: I don't want the .git directory next to my code., David Symonds, (Fri Jan 18, 3:52 am)
Re: I don't want the .git directory next to my code., Johannes Schindelin, (Thu Jan 17, 3:20 pm)
Re: I don't want the .git directory next to my code., Johannes Schindelin, (Thu Jan 17, 4:08 pm)
Re: I don't want the .git directory next to my code., Johannes Schindelin, (Thu Jan 17, 4:57 pm)
Re: I don't want the .git directory next to my code., Johannes Schindelin, (Thu Jan 17, 5:05 pm)
Re: I don't want the .git directory next to my code., Linus Torvalds, (Thu Jan 17, 1:36 pm)
Re: I don't want the .git directory next to my code., Johannes Schindelin, (Thu Jan 17, 1:49 pm)
Re: I don't want the .git directory next to my code., Linus Torvalds, (Thu Jan 17, 2:02 pm)
Re: I don't want the .git directory next to my code., Johannes Schindelin, (Thu Jan 17, 2:10 pm)
Re: I don't want the .git directory next to my code., Wincent Colaiuta, (Thu Jan 17, 6:34 am)
Re: I don't want the .git directory next to my code., Kris Shannon, (Thu Jan 17, 2:38 am)
Re: I don't want the .git directory next to my code., Johannes Schindelin, (Wed Jan 16, 1:51 pm)
Re: I don't want the .git directory next to my code., David Symonds, (Wed Jan 16, 12:24 am)
Re: I don't want the .git directory next to my code., Dan McGee, (Tue Jan 15, 11:56 pm)
Re: I don't want the .git directory next to my code., Mike Krier, (Wed Jan 16, 2:07 am)