From: Junio C Hamano <gitster@pobox.com>
To: Jeff King <peff@peff.net>
Cc: Shawn Pearce <spearce@spearce.org>,
Neal Kreitzinger <neal@rsss.com>,
git@vger.kernel.org
Subject: Re: concurrent fetches to update same mirror
Date: Wed, 05 Jan 2011 15:29:47 -0800 [thread overview]
Message-ID: <7vbp3vc4k4.fsf@alter.siamese.dyndns.org> (raw)
In-Reply-To: <20110105211313.GB7808@sigill.intra.peff.net> (Jeff King's message of "Wed\, 5 Jan 2011 16\:13\:14 -0500")
Jeff King <peff@peff.net> writes:
> Interestingly, in the case of ref _creation_, not update, like this:
>
> mkdir repo && cd repo && git init
> git remote add origin some-remote-repo-that-takes-a-few-seconds
> xterm -e 'git fetch -v; read' & xterm -e 'git fetch -v; read'
>
> then both will happily update, the second one overwriting the results of
> the first. It seems in the case of locking a ref which previously didn't
> exist, we don't enforce that it still doesn't exist.
We probably should, especially when there is no --force or +prefix is
involved.
next prev parent reply other threads:[~2011-01-05 23:30 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-05 20:33 concurrent fetches to update same mirror Neal Kreitzinger
2011-01-05 20:47 ` Jeff King
2011-01-05 20:51 ` Shawn Pearce
2011-01-05 20:53 ` Jeff King
2011-01-05 21:13 ` Jeff King
2011-01-05 22:34 ` Neal Kreitzinger
2011-01-05 22:42 ` Neal Kreitzinger
2011-01-05 22:57 ` Jeff King
2011-01-05 23:29 ` Junio C Hamano [this message]
2011-01-06 23:45 ` Jeff King
2011-01-07 14:50 ` Marc Branchaud
2011-01-07 14:51 ` Marc Branchaud
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=7vbp3vc4k4.fsf@alter.siamese.dyndns.org \
--to=gitster@pobox.com \
--cc=git@vger.kernel.org \
--cc=neal@rsss.com \
--cc=peff@peff.net \
--cc=spearce@spearce.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 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.