{"thread":{"id":"15451","subject":"Commit templates are not readable after 'make install'","startedAt":"2008-09-09T15:41:38Z","lastAt":"2008-09-09T15:41:38Z","messageCount":1,"participants":["Anatol Pomozov"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"90231","messageId":"3665a1a00809090841l5d34f57ax8ad99d99a28bd494@mail.gmail.com","threadId":"15451","inReplyTo":"3665a1a00809090835g2a8ea4aas6cfa2ebc922f12b2@mail.gmail.com","subject":"Commit templates are not readable after 'make install'","fromName":"Anatol Pomozov","fromEmail":"anatol.pomozov@gmail.com","sentAt":"2008-09-09T15:41:38Z","receivedAt":"2008-09-09T15:41:38Z","isPatch":false,"sender":{"key":"anatol.pomozov@gmail.com","avatar":"https://gravatar.com/avatar/71fc20093402ce987148294ec0999d025209e52da6762789ff248cf5c317645f?d=mp&s=160"},"body":"Hi,\n\nI build git from sources and I have one small permissions issue that\n(I think) should be fixed.\n\nSo I build it as described in INSTALL file\nmake prefix=/usr all\nsudo make prefix=/usr install\n\nEverything goes fine here and we have a new version of git installed\n$ git --version\ngit version 1.6.0.1.285.g1070\n\nBut when I want to create a new repo, I have a fatal problem\n$ git init\nfatal: cannot copy /usr/share/git-core/templates/\nhooks/applypatch-msg.sample to\n/personal/sources/opensource/1/.git/hooks/applypatch-msg.sample\n\n\nBecause of the template files are readable only for root\n$ ls -l /usr/share/git-core/templates/hooks/\ntotal 44\n-rwxr-x--- 1 root root  452 2008-08-29 11:04 applypatch-msg.sample\n-rwxr-x--- 1 root root  894 2008-08-29 11:04 commit-msg.sample\n-rwxr-x--- 1 root root  160 2008-08-29 11:04 post-commit.sample\n-rwxr-x--- 1 root root  553 2008-08-29 11:04 post-receive.sample\n\n\nI could fix the problem by running\n$ sudo chmod a+r -R /usr/share/git-core/templates\n\n\nBut I think it should do 'make' when it installs git-core, isnt it?\n\n--\nanatol\n"}]}