From: Junio C Hamano <gitster@pobox.com>
To: "Anatol Pomozov" <anatol.pomozov@gmail.com>
Cc: git@vger.kernel.org, johannes.sixt@telecom.at
Subject: Re: Commit templates are not readable after 'make install'
Date: Tue, 09 Sep 2008 12:19:03 -0700 [thread overview]
Message-ID: <7v8wu16sbc.fsf@gitster.siamese.dyndns.org> (raw)
In-Reply-To: <3665a1a00809091202u295fedabl53b280aad7bedb62@mail.gmail.com> (Anatol Pomozov's message of "Tue, 9 Sep 2008 12:02:01 -0700")
"Anatol Pomozov" <anatol.pomozov@gmail.com> writes:
> I build git from sources and I have one small permissions issue that
> (I think) should be fixed.
>
> So I build it as described in INSTALL file
> make prefix=/usr all
> sudo make prefix=/usr install
>
> Everything goes fine here and we have a new version of git installed
> $ git --version
> git version 1.6.0.1.285.g1070
>
> But when I want to create a new repo, I have a fatal problem
> $ git init
> fatal: cannot copy
> /usr/share/git-core/templates/hooks/applypatch-msg.sample to
> /personal/sources/opensource/1/.git/hooks/applypatch-msg.sample
>
>
> Because of the template files are readable only for root
> $ ls -l /usr/share/git-core/templates/hooks/
> total 44
> -rwxr-x--- 1 root root 452 2008-08-29 11:04 applypatch-msg.sample
> -rwxr-x--- 1 root root 894 2008-08-29 11:04 commit-msg.sample
> -rwxr-x--- 1 root root 160 2008-08-29 11:04 post-commit.sample
> -rwxr-x--- 1 root root 553 2008-08-29 11:04 post-receive.sample
Didn't 9907721 (templates/Makefile: don't depend on local umask setting,
2008-02-28) take care of that?
... goes and looks ...
Ah, that is only to propagate the wish of the person who _built_ it.
You probably have a tight umask and have sources checked out unreadable to
others, which is propagated to the installation (check the permission of
files in your templates/blt directory to verify this conjecture). And the
build procedure is honoring your wish to make things unreadable to others.
next prev parent reply other threads:[~2008-09-09 19:40 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-09 19:02 Commit templates are not readable after 'make install' Anatol Pomozov
2008-09-09 19:19 ` Junio C Hamano [this message]
2008-09-09 20:18 ` Junio C Hamano
2008-09-10 6:34 ` Johannes Sixt
2008-09-10 7:23 ` Junio C Hamano
2008-09-11 17:21 ` Anatol Pomozov
[not found] <3665a1a00809090835g2a8ea4aas6cfa2ebc922f12b2@mail.gmail.com>
2008-09-09 15:41 ` Anatol Pomozov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7v8wu16sbc.fsf@gitster.siamese.dyndns.org \
--to=gitster@pobox.com \
--cc=anatol.pomozov@gmail.com \
--cc=git@vger.kernel.org \
--cc=johannes.sixt@telecom.at \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.