{"thread":{"id":"25494","subject":"git repository in production release","startedAt":"2010-10-21T12:13:53Z","lastAt":"2010-10-21T19:07:58Z","messageCount":4,"participants":["Jonas","Drew Northup","Enrico Weigelt"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"153951","messageId":"loom.20101021T140249-924@post.gmane.org","threadId":"25494","inReplyTo":null,"subject":"git repository in production release","fromName":"Jonas","fromEmail":"jonas@ibiz.se","sentAt":"2010-10-21T12:13:53Z","receivedAt":"2010-10-21T12:13:53Z","isPatch":false,"sender":{"key":"jonas@ibiz.se","avatar":null},"body":"Hi,\n\nI am afraid this is a rather stupid question, but I have spent quite some time\nto figure it out without any success.\n\nI use git in my Ruby on Rails applications. On my deployment server\nthere is a git directory that I push to in the admin users directory. \nWhen I run cap deploy Capistrano makes a new release and makes a new \ndirectory under releases from the repository, I guess this is standard.\n\nMy releases are getting bigger and bigger, it takes longer and \nlonger time for the cap deploy command to \nfinish and the backups contain a huge number of files.\n\nWhat puzzels me is that in every release  there is a .git directory.\nAs far as I can see it makes no use there, \njust takes up much space. Is it supposed to be like this or have I made a mess?\n\nHow can I get rid of the .git directory in the deployment releases?\n\n:-) j\n"},{"id":"153954","messageId":"1287664757.24161.17.camel@drew-northup.unet.maine.edu","threadId":"25494","inReplyTo":"loom.20101021T140249-924@post.gmane.org","subject":"Re: git repository in production release","fromName":"Drew Northup","fromEmail":"drew.northup@maine.edu","sentAt":"2010-10-21T12:39:17Z","receivedAt":"2010-10-21T12:39:17Z","isPatch":false,"sender":{"key":"drew.northup@maine.edu","avatar":"https://avatars.githubusercontent.com/u/18331571?v=4"},"body":"\nOn Thu, 2010-10-21 at 12:13 +0000, Jonas wrote:\n> Hi,\n> \n> I am afraid this is a rather stupid question, but I have spent quite some time\n> to figure it out without any success.\n> \n> I use git in my Ruby on Rails applications. On my deployment server\n> there is a git directory that I push to in the admin users directory. \n> When I run cap deploy Capistrano makes a new release and makes a new \n> directory under releases from the repository, I guess this is standard.\n> \n> My releases are getting bigger and bigger, it takes longer and \n> longer time for the cap deploy command to \n> finish and the backups contain a huge number of files.\n> \n> What puzzels me is that in every release  there is a .git directory.\n> As far as I can see it makes no use there, \n> just takes up much space. Is it supposed to be like this or have I made a mess?\n> \n> How can I get rid of the .git directory in the deployment releases?\n\nWhy is this a git problem and not a Capistrano problem?\n\n-- \n-Drew Northup\n________________________________________________\n\"As opposed to vegetable or mineral error?\"\n-John Pescatore, SANS NewsBites Vol. 12 Num. 59\n"},{"id":"153963","messageId":"loom.20101021T160058-462@post.gmane.org","threadId":"25494","inReplyTo":"1287664757.24161.17.camel@drew-northup.unet.maine.edu","subject":"Re: git repository in production release","fromName":"Jonas","fromEmail":"jonas@ibiz.se","sentAt":"2010-10-21T14:03:46Z","receivedAt":"2010-10-21T14:03:46Z","isPatch":false,"sender":{"key":"jonas@ibiz.se","avatar":null},"body":"Because I suspect that the local .git directory in my rails application \nfolder should not be added to the \nremote repository at all. But I might be wrong.\n"},{"id":"154002","messageId":"20101021190755.GD28700@nibiru.local","threadId":"25494","inReplyTo":"loom.20101021T160058-462@post.gmane.org","subject":"Re: git repository in production release","fromName":"Enrico Weigelt","fromEmail":"weigelt@metux.de","sentAt":"2010-10-21T19:07:58Z","receivedAt":"2010-10-21T19:07:58Z","isPatch":false,"sender":{"key":"weigelt@metux.de","avatar":null},"body":"* Jonas <jonas@ibiz.se> wrote:\n> Because I suspect that the local .git directory in my rails application \n> folder should not be added to the \n> remote repository at all. But I might be wrong.\n\nYour repository (aka: the committed trees inside it) contain a .git\ndirectory ? That's very strange, should not happen in normal git\noperations (would cause some infinite recursion ;-o).\n\nSeems that something's wrong w/ Capistrano - most likely not a\nproblem of git itself.\n\n\ncu\n-- \n----------------------------------------------------------------------\n Enrico Weigelt, metux IT service -- http://www.metux.de/\n\n phone:  +49 36207 519931  email: weigelt@metux.de\n mobile: +49 151 27565287  icq:   210169427         skype: nekrad666\n----------------------------------------------------------------------\n Embedded-Linux / Portierung / Opensource-QM / Verteilte Systeme\n----------------------------------------------------------------------\n"}]}