git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: James Pickens <jepicken@gmail.com>
To: Git ML <git@vger.kernel.org>
Subject: 'git clone' doesn't use alternates automatically?
Date: Fri, 30 Jan 2009 15:12:42 -0700	[thread overview]
Message-ID: <885649360901301412jd5c6b0dne1eff1ff00dd043e@mail.gmail.com> (raw)

Hi,

I have a central, shared Git repository on an NFS drive at path
$central.  I have added "$central/objects" to
$central/objects/info/alternates.  I see that when I clone this
repository with Git 1.6.1, the alternates file is automatically copied
to the clone, but so are all the pack files and loose objects.  If I
then cd to the clone and run 'git gc', it removes the redundant local
objects.

I thought I tested this setup a few months back, and 'git clone'
automatically used the alternates file to avoid copying the redundant
objects into the clone.  Has this behavior changed, or is my memory
bad?

James

             reply	other threads:[~2009-01-30 22:14 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-30 22:12 James Pickens [this message]
2009-01-31  7:12 ` 'git clone' doesn't use alternates automatically? Jeff King
2009-01-31 20:08   ` James Pickens
2009-01-31 21:08     ` Jakub Narebski
2009-01-31 21:43       ` James Pickens
2009-01-31 21:55     ` Jeff King
2009-02-01  1:19       ` Junio C Hamano
2009-02-02 13:07         ` Jeff King
2009-02-03  4:30           ` Junio C Hamano
2009-02-03  6:06             ` Jeff King
2009-02-01  0:55     ` Junio C Hamano
2009-02-01  1:32       ` James Pickens
2009-02-01  1:38         ` Junio C Hamano

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=885649360901301412jd5c6b0dne1eff1ff00dd043e@mail.gmail.com \
    --to=jepicken@gmail.com \
    --cc=git@vger.kernel.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).