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

Re: Adding default remotes to a bare repository

From
FMFrancis Moreau <francis.moro@gmail.com>
Date
Feb 10, 2011, 21:24 UTC
Message-ID
<AANLkTimg0YZ7eQ=hsxqSYJPipahLpiqZqSVkFz25=A2k@mail.gmail.com>
In-Reply-To
<4D5437C4.6000401@gmail.com>

On Thu, Feb 10, 2011 at 8:08 PM, Neal Kreitzinger <nkreitzinger@gmail.com> wrote:

Show 6 quoted lines
>
> You could write a script that does the clone and then adds the remotes.  We
> have a "menu" written in bash scripts and it does the clones and adds the
> default remotes automatically.  So instead of just doing "git clone", people
> would run that script to do the clone and add the remotes.
>
Sure.

But I'm wondering why cloning operation can't import the remote branches of the cloned repository.

Actually I'm wondering the same thing for hooks. If a repository setup some hooks, can't these hooks be installed by default in the new repositories ?

-- 
Francis
Previous: Neal KreitzingerNext: Neal Kreitzinger
Message 3 of 6 in “Adding default remotes to a bare repository”
  1. Francis MoreauFeb 9, 2011
  2. Neal KreitzingerFeb 10, 2011
  3. Francis MoreauFeb 10, 2011
  4. Neal KreitzingerFeb 10, 2011
  5. Francis MoreauFeb 11, 2011
  6. Neal KreitzingerFeb 11, 2011

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.