{"thread":{"id":"18867","subject":"git init permissions?","startedAt":"2009-04-14T18:09:50Z","lastAt":"2009-04-23T20:50:13Z","messageCount":6,"participants":["Ferry Huberts (Pelagic)","Jan Krüger","Johan Herland","Todd Zullinger"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"111297","messageId":"49E4D16E.9050500@pelagic.nl","threadId":"18867","inReplyTo":null,"subject":"git init permissions?","fromName":"Ferry Huberts (Pelagic)","fromEmail":"ferry.huberts@pelagic.nl","sentAt":"2009-04-14T18:09:50Z","receivedAt":"2009-04-14T18:09:50Z","isPatch":false,"sender":{"key":"ferry.huberts@pelagic.nl","avatar":"https://gravatar.com/avatar/9f63c0289ad23cbdef0f7609a0af85ff0f4b3babfd066de9ff58f62d48cfd6f2?d=mp&s=160"},"body":"Hi list,\n\nMaybe a silly question but I couldn't figure out the answer.\n\nI'm looking at the git init --shared=group result and see:\n\ndrwxrwsr-x 7 ferry ferry  111 2009-04-14 19:51 .\ndrwxrwxr-x 3 ferry ferry   17 2009-04-14 19:51 ..\ndrwxrwxr-x 2 ferry ferry    6 2009-04-14 19:51 branches\n-rw-rw-r-- 1 ferry ferry  127 2009-04-14 19:51 config\n-rw-rw-r-- 1 ferry ferry   58 2009-04-14 19:51 description\n-rw-rw-r-- 1 ferry ferry   23 2009-04-14 19:51 HEAD\ndrwxrwxr-x 2 ferry ferry 4.0K 2009-04-14 19:51 hooks\ndrwxrwxr-x 2 ferry ferry   20 2009-04-14 19:51 info\ndrwxrwsr-x 4 ferry ferry   28 2009-04-14 19:51 objects\ndrwxrwsr-x 4 ferry ferry   29 2009-04-14 19:51 refs\n\nIs there some kind of reason that the branches directory is\nnot created with +s permissions?\n\nI can understand it for the hooks and info directories since\nyou can not push into those. You _can_ however push into\nbranches and I would expect it to have +s too, like objects\nand refs.\n\nBug or my misunderstanding?\n\ngit version 1.6.0.6\n"},{"id":"111299","messageId":"20090414204024.5371fcac@perceptron","threadId":"18867","inReplyTo":"49E4D16E.9050500@pelagic.nl","subject":"Re: git init permissions?","fromName":"Jan Krüger","fromEmail":"jk@jk.gs","sentAt":"2009-04-14T18:40:24Z","receivedAt":"2009-04-14T18:40:24Z","isPatch":false,"sender":{"key":"jk@jk.gs","avatar":"https://avatars.githubusercontent.com/u/1774?v=4"},"body":"Hi,\n\nOn Tue, 14 Apr 2009 20:09:50 +0200, \"Ferry Huberts (Pelagic)\"\n<ferry.huberts@pelagic.nl> wrote:\n\n> Is there some kind of reason that the branches directory is\n> not created with +s permissions?\n\nProbably because it isn't really used anymore. It's more like a\nhistorical artifact. Branch refs actually live in refs/heads/ and the\nlike (or in the packed-refs file).\n\n-Jan\n"},{"id":"111303","messageId":"200904142047.21810.johan@herland.net","threadId":"18867","inReplyTo":"49E4D16E.9050500@pelagic.nl","subject":"Re: git init permissions?","fromName":"Johan Herland","fromEmail":"johan@herland.net","sentAt":"2009-04-14T18:47:21Z","receivedAt":"2009-04-14T18:47:21Z","isPatch":false,"sender":{"key":"johan@herland.net","avatar":"https://avatars.githubusercontent.com/u/547031?v=4"},"body":"On Tuesday 14 April 2009, Ferry Huberts (Pelagic) wrote:\n> I'm looking at the git init --shared=group result and see:\n>\n> drwxrwsr-x 7 ferry ferry  111 2009-04-14 19:51 .\n> drwxrwxr-x 3 ferry ferry   17 2009-04-14 19:51 ..\n> drwxrwxr-x 2 ferry ferry    6 2009-04-14 19:51 branches\n> -rw-rw-r-- 1 ferry ferry  127 2009-04-14 19:51 config\n> -rw-rw-r-- 1 ferry ferry   58 2009-04-14 19:51 description\n> -rw-rw-r-- 1 ferry ferry   23 2009-04-14 19:51 HEAD\n> drwxrwxr-x 2 ferry ferry 4.0K 2009-04-14 19:51 hooks\n> drwxrwxr-x 2 ferry ferry   20 2009-04-14 19:51 info\n> drwxrwsr-x 4 ferry ferry   28 2009-04-14 19:51 objects\n> drwxrwsr-x 4 ferry ferry   29 2009-04-14 19:51 refs\n>\n> Is there some kind of reason that the branches directory is\n> not created with +s permissions?\n>\n> I can understand it for the hooks and info directories since\n> you can not push into those. You _can_ however push into\n> branches and I would expect it to have +s too, like objects\n> and refs.\n>\n> Bug or my misunderstanding?\n>\n> git version 1.6.0.6\n\nThis was caused by the template files not getting adjusted permissions set \ncorrectly when copied into a new repository (by git init).\n\nThis has been fixed (along with other --shared issues) in v1.6.2.3. Please \nupgrade, if possible.\n\n\nHave fun! :)\n\n...Johan\n\n-- \nJohan Herland, <johan@herland.net>\nwww.herland.net\n"},{"id":"111306","messageId":"49E4E598.6050505@pelagic.nl","threadId":"18867","inReplyTo":"200904142047.21810.johan@herland.net","subject":"Re: git init permissions?","fromName":"Ferry Huberts (Pelagic)","fromEmail":"ferry.huberts@pelagic.nl","sentAt":"2009-04-14T19:35:52Z","receivedAt":"2009-04-14T19:35:52Z","isPatch":false,"sender":{"key":"ferry.huberts@pelagic.nl","avatar":"https://gravatar.com/avatar/9f63c0289ad23cbdef0f7609a0af85ff0f4b3babfd066de9ff58f62d48cfd6f2?d=mp&s=160"},"body":"Johan Herland wrote:\n> On Tuesday 14 April 2009, Ferry Huberts (Pelagic) wrote:\n>> I'm looking at the git init --shared=group result and see:\n>>\n>> drwxrwsr-x 7 ferry ferry  111 2009-04-14 19:51 .\n>> drwxrwxr-x 3 ferry ferry   17 2009-04-14 19:51 ..\n>> drwxrwxr-x 2 ferry ferry    6 2009-04-14 19:51 branches\n>> -rw-rw-r-- 1 ferry ferry  127 2009-04-14 19:51 config\n>> -rw-rw-r-- 1 ferry ferry   58 2009-04-14 19:51 description\n>> -rw-rw-r-- 1 ferry ferry   23 2009-04-14 19:51 HEAD\n>> drwxrwxr-x 2 ferry ferry 4.0K 2009-04-14 19:51 hooks\n>> drwxrwxr-x 2 ferry ferry   20 2009-04-14 19:51 info\n>> drwxrwsr-x 4 ferry ferry   28 2009-04-14 19:51 objects\n>> drwxrwsr-x 4 ferry ferry   29 2009-04-14 19:51 refs\n>>\n>> Is there some kind of reason that the branches directory is\n>> not created with +s permissions?\n>>\n>> I can understand it for the hooks and info directories since\n>> you can not push into those. You _can_ however push into\n>> branches and I would expect it to have +s too, like objects\n>> and refs.\n>>\n>> Bug or my misunderstanding?\n>>\n>> git version 1.6.0.6\n> \n> This was caused by the template files not getting adjusted permissions set \n> correctly when copied into a new repository (by git init).\n> \n> This has been fixed (along with other --shared issues) in v1.6.2.3. Please \n> upgrade, if possible.\n> \n\nunfortunately that's not possible since I'm on RHEL.\n\nthanks for the asnwers guys!\n"},{"id":"111333","messageId":"20090415010252.GD13966@inocybe.teonanacatl.org","threadId":"18867","inReplyTo":"49E4E598.6050505@pelagic.nl","subject":"Re: git init permissions?","fromName":"Todd Zullinger","fromEmail":"tmz@pobox.com","sentAt":"2009-04-15T01:02:53Z","receivedAt":"2009-04-15T01:02:53Z","isPatch":false,"sender":{"key":"tmz@pobox.com","avatar":"https://avatars.githubusercontent.com/u/806319?v=4"},"body":"Ferry Huberts (Pelagic) wrote:\n> Johan Herland wrote:\n>> This has been fixed (along with other --shared issues) in v1.6.2.3.\n>> Please upgrade, if possible.\n>\n> unfortunately that's not possible since I'm on RHEL.\n\nOut of curiosity, why not?  I'm not aware of any official git-1.6.0.6\nbuilds for RHEL, so you must already be using git from a third-party\nrepository.\n\n-- \nTodd        OpenPGP -> KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\nWhen correctly viewed, everything is lewd.\n    -- Tom Lehrer\n\n"},{"id":"112133","messageId":"49F0D485.6050607@pelagic.nl","threadId":"18867","inReplyTo":"20090415010252.GD13966@inocybe.teonanacatl.org","subject":"Re: git init permissions?","fromName":"Ferry Huberts (Pelagic)","fromEmail":"ferry.huberts@pelagic.nl","sentAt":"2009-04-23T20:50:13Z","receivedAt":"2009-04-23T20:50:13Z","isPatch":false,"sender":{"key":"ferry.huberts@pelagic.nl","avatar":"https://gravatar.com/avatar/9f63c0289ad23cbdef0f7609a0af85ff0f4b3babfd066de9ff58f62d48cfd6f2?d=mp&s=160"},"body":"Todd Zullinger wrote:\n> Ferry Huberts (Pelagic) wrote:\n>> Johan Herland wrote:\n>>> This has been fixed (along with other --shared issues) in v1.6.2.3.\n>>> Please upgrade, if possible.\n>> unfortunately that's not possible since I'm on RHEL.\n> \n> Out of curiosity, why not?  I'm not aware of any official git-1.6.0.6\n> builds for RHEL, so you must already be using git from a third-party\n> repository.\n> \n\nI did the test on my fedora system. the git version on rhel is even\nolder than 1606\n"}]}