git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: running "git init --shared" on an existing repo

From
Junio C Hamano <gitster@pobox.com>
Date
Mar 22, 2010, 07:06 UTC
Message-ID
<7v8w9kq1ia.fsf@alter.siamese.dyndns.org>
In-Reply-To
<2e24e5b91003212330r2f3fd118y18386ef61c28ee89@mail.gmail.com>
Sitaram Chamarty <sitaramc@gmail.com> writes:
Show 6 quoted lines
> And it seems there was a beginning made.  builtin/init-db.c at line 220 says:
>
>             /*
>              * We would have created the above under user's umask -- under
>              * shared-repository settings, we would need to fix them up.
>              */

That "the above" refers to "in this process that created the repository directory and populated it halfway by calling copy_templates()", and never "some time ago by some other process that created the repository, in which this process is now being run", so it is not fair to say "a beginning".

You would need to run "find $GIT_DIR -print0 | xargs -0 chown/mod ..." or a moral equivalent of it, I guess. Shouldn't be a rocket surgery ;-)

Previous: Sitaram ChamartyNext: Sitaram Chamarty
Message 2 of 3 in “running "git init --shared" on an existing repo”
  1. Sitaram ChamartyMar 22, 2010
  2. Junio C HamanoMar 22, 2010
  3. Fwd: running "git init --shared" on an existing repoSitaram Chamarty, Mar 22, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.