git/list[1] front-page[2] threads[3] people[4] search[5] about
 

git repository in production release

From
JJonas <jonas@ibiz.se>
Date
Oct 21, 2010, 12:13 UTC
Message-ID
<loom.20101021T140249-924@post.gmane.org>
Hi,

I am afraid this is a rather stupid question, but I have spent quite some time to figure it out without any success.

I use git in my Ruby on Rails applications. On my deployment server there is a git directory that I push to in the admin users directory. When I run cap deploy Capistrano makes a new release and makes a new directory under releases from the repository, I guess this is standard.

My releases are getting bigger and bigger, it takes longer and longer time for the cap deploy command to finish and the backups contain a huge number of files.

What puzzels me is that in every release there is a .git directory. As far as I can see it makes no use there, just takes up much space. Is it supposed to be like this or have I made a mess?

How can I get rid of the .git directory in the deployment releases?
:-) j
Next: Drew Northup
Message 1 of 4 in “git repository in production release”
  1. JonasOct 21, 2010
  2. Drew NorthupOct 21, 2010
  3. JonasOct 21, 2010
  4. Enrico WeigeltOct 21, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.