{"thread":{"id":"33944","subject":"contrib/git-normal-to-bare.sh","startedAt":"2013-05-27T04:00:46Z","lastAt":"2013-05-29T02:52:48Z","messageCount":5,"participants":["Zenaan Harkness","Matthieu Moy","Fredrik Gustafsson","Felipe Contreras"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"218587","messageId":"CAOsGNSSFx7VEOmz4qTt9nz=SXzQCZH7PdZ+gnYVqLhmRmRcT-A@mail.gmail.com","threadId":"33944","inReplyTo":null,"subject":"contrib/git-normal-to-bare.sh","fromName":"Zenaan Harkness","fromEmail":"zen@freedbms.net","sentAt":"2013-05-27T04:00:46Z","receivedAt":"2013-05-27T04:00:46Z","isPatch":false,"sender":{"key":"zen@freedbms.net","avatar":null},"body":"This question comes up every now and then - how to convert from normal\nto bare, or vice versa.\n\nThis is just a start to a basic script to go one way. Needs more tests\netc, but it's enough to get newbies (like me) off to a reasonable\nstart.\n\nPLEASE CC me, as I am not subscribed.\n\nThanks,\nZenaan\n"},{"id":"218593","messageId":"vpqr4gs23u6.fsf@anie.imag.fr","threadId":"33944","inReplyTo":"CAOsGNSSFx7VEOmz4qTt9nz=SXzQCZH7PdZ+gnYVqLhmRmRcT-A@mail.gmail.com","subject":"Re: contrib/git-normal-to-bare.sh","fromName":"Matthieu Moy","fromEmail":"matthieu.moy@grenoble-inp.fr","sentAt":"2013-05-27T09:02:09Z","receivedAt":"2013-05-27T09:02:09Z","isPatch":false,"sender":{"key":"matthieu.moy@grenoble-inp.fr","avatar":"https://gravatar.com/avatar/72c8a2705971a25dfaff23cece15130d405685845d911aedd5667ace277f3fc5?d=mp&s=160"},"body":"Zenaan Harkness <zen@freedbms.net> writes:\n\n>    rm -rf $repo\n\nThe user would appreciate if you check that there are no uncommited\nchanges and no untracked files (at least no untracked and not ignored\nfiles) before running this.\n\nAlso, it's \"$repo\", not just $repo, or you'll get surprising behavior if\n$repo contain spaces.\n\nThe safe way would actually be stg like:\n\n  rm -fr -- \"$repo\"\n\nin case $repo starts with a dash.\n\n-- \nMatthieu Moy\nhttp://www-verimag.imag.fr/~moy/\n"},{"id":"218595","messageId":"CAOsGNSRm8QChOupsY_Z++qDOMh4hXq-9A_Z2X6uY5o-tFMNj0A@mail.gmail.com","threadId":"33944","inReplyTo":"vpqr4gs23u6.fsf@anie.imag.fr","subject":"Re: contrib/git-normal-to-bare.sh","fromName":"Zenaan Harkness","fromEmail":"zen@freedbms.net","sentAt":"2013-05-27T09:43:13Z","receivedAt":"2013-05-27T09:43:13Z","isPatch":false,"sender":{"key":"zen@freedbms.net","avatar":null},"body":"On 5/27/13, Matthieu Moy <Matthieu.Moy@grenoble-inp.fr> wrote:\n> Zenaan Harkness <zen@freedbms.net> writes:\n>\n>>    rm -rf $repo\n>\n> The user would appreciate if you check that there are no uncommited\n> changes and no untracked files (at least no untracked and not ignored\n> files) before running this.\n>\n> Also, it's \"$repo\", not just $repo, or you'll get surprising behavior if\n> $repo contain spaces.\n>\n> The safe way would actually be stg like:\n>\n>   rm -fr -- \"$repo\"\n\nThanks.\n\nIn my later email, I changed it to mv - should have highlighted there\nwas a change. I got bitten, on a small repo thankfully, where a perms\nor ownership problem caused the whole repo to disappear. So mv it is\n:)\n\nBTW, I've subscribed for a little while now...\n\nThanks again\nZenaan\n"},{"id":"218596","messageId":"20130527095240.GA530@paksenarrion.iveqy.com","threadId":"33944","inReplyTo":"CAOsGNSRm8QChOupsY_Z++qDOMh4hXq-9A_Z2X6uY5o-tFMNj0A@mail.gmail.com","subject":"Re: contrib/git-normal-to-bare.sh","fromName":"Fredrik Gustafsson","fromEmail":"iveqy@iveqy.com","sentAt":"2013-05-27T09:52:40Z","receivedAt":"2013-05-27T09:52:40Z","isPatch":false,"sender":{"key":"iveqy@iveqy.com","avatar":"https://avatars.githubusercontent.com/u/761743?v=4"},"body":"On Mon, May 27, 2013 at 07:43:13PM +1000, Zenaan Harkness wrote:\n> In my later email, I changed it to mv - should have highlighted there\n> was a change. I got bitten, on a small repo thankfully, where a perms\n> or ownership problem caused the whole repo to disappear. So mv it is\n> :)\n\nDo you really need bash for that script or will it do with sh? I think\nsh is preferred.\n\nAlso a mv instead of a rm will require a lot of disc space if you have a\nbig repository.\n\n-- \nMed vänliga hälsningar\nFredrik Gustafsson\n\ntel: 0733-608274\ne-post: iveqy@iveqy.com\n"},{"id":"218717","messageId":"51a56d80d8a59_8bf138be1c906c6@nysa.mail","threadId":"33944","inReplyTo":"CAOsGNSSFx7VEOmz4qTt9nz=SXzQCZH7PdZ+gnYVqLhmRmRcT-A@mail.gmail.com","subject":"RE: contrib/git-normal-to-bare.sh","fromName":"Felipe Contreras","fromEmail":"felipe.contreras@gmail.com","sentAt":"2013-05-29T02:52:48Z","receivedAt":"2013-05-29T02:52:48Z","isPatch":false,"sender":{"key":"felipe.contreras@gmail.com","avatar":"https://avatars.githubusercontent.com/u/8358?v=4"},"body":"Zenaan Harkness wrote:\n> This question comes up every now and then - how to convert from normal\n> to bare, or vice versa.\n> \n> This is just a start to a basic script to go one way. Needs more tests\n> etc, but it's enough to get newbies (like me) off to a reasonable\n> start.\n> \n> PLEASE CC me, as I am not subscribed.\n\nYou do not need to ask to be CC'ed. Any mailing list properly configued would\nnot munge the Reply-To header, so anybody replying to this mail would reply to\nyou.\n\nGit is a properly configured mailing list, just like all the mailing list in\nvger.kernel.org.\n\nCheers.\n\n-- \nFelipe Contreras\n"}]}