git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jeff King <peff@peff.net>
To: David Lang <david@lang.hm>
Cc: Stephen Smith <ishchis2@gmail.com>,
	Konstantin Khomoutov <kostix+git@007spb.ru>,
	"git@vger.kernel.org" <git@vger.kernel.org>,
	"Lang, David" <David.Lang@uhn.ca>
Subject: Re: Question re. git remote repository
Date: Thu, 17 Jan 2013 15:49:13 -0800	[thread overview]
Message-ID: <20130117234912.GA14936@sigill.intra.peff.net> (raw)
In-Reply-To: <alpine.DEB.2.02.1301161459060.21503@nftneq.ynat.uz>

On Wed, Jan 16, 2013 at 03:00:41PM -0800, David Lang wrote:

> >>This one [1] for instance.  I also recall seing people having other
> >>"mystical" problems with setups like this so I somehow developed an idea
> >>than having a repository on a networked drive is asking for troubles.
> >>Of course, if there are happy users of such setups, I would be glad to
> >>hear as my precautions might well be unfounded for the recent versions
> >>of Git.
> >>
> >>1. http://code.google.com/p/msysgit/issues/detail?id=130
> >
> >A group I was with used a master repository on a windows share for quite some time without a database corruption being seen.   --
> 
> I think the risk is that if you have multiple people doing actions on
> the shared filesystem you can run into trouble.
> 
> As long as only one copy of git is ever running against the
> repository, I don't see any reason for there to be a problem.

That should not be an issue. Git on a server has to deal with multiple
independent receive-pack's running to accept several simultaneous
pushes. They coordinate through the use of file locks. Having multiple
machines pushing over a shared filesystem should work the same, as long
as the filesystem support atomic creation of files with O_EXCL.

There may be other subtle issues lurking (e.g., the Windows issue that
Konstantin mentioned), but as far as I know, it _should_ work in
general.

-Peff

  parent reply	other threads:[~2013-01-17 23:49 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-16 17:49 Question re. git remote repository Lang, David
2013-01-16 18:06 ` Konstantin Khomoutov
2013-01-16 18:21   ` Jeff King
2013-01-16 19:37     ` Konstantin Khomoutov
2013-01-16 22:59       ` Stephen Smith
2013-01-16 23:00         ` David Lang
2013-01-17 21:53           ` Lang, David
2013-01-18  5:51             ` Matt Seitz
2013-01-18  6:18               ` David Lang
2013-01-18 18:33               ` Lang, David
2013-01-18 21:56                 ` Matt Seitz
2013-01-23 19:40                   ` Lang, David
2013-01-23 20:24                     ` Junio C Hamano
     [not found]               ` <201301181833.r0IIXNGb027544@smtpb02.one-mail.on.ca>
2013-01-18 20:27                 ` David Lang
2013-01-18 21:20                   ` Junio C Hamano
2013-01-18 21:27                     ` David Lang
2013-01-18 21:38                       ` Junio C Hamano
2013-01-18 23:10                       ` Philip Oakley
     [not found]           ` <201301172153.r0HLrUIr001039@smtpb01.one-mail.on.ca>
2013-01-17 23:19             ` David Lang
2013-01-17 23:49           ` Jeff King [this message]
2013-01-16 20:07 ` David Lang
  -- strict thread matches above, loose matches on Subject: below --
2013-01-16 21:07 Matt Seitz (matseitz)
2013-01-16 23:32 Matt Seitz (matseitz)
2013-01-17  0:21 ` David Lang
2013-01-17  1:09   ` Matt Seitz (matseitz)
2013-01-17  1:26     ` David Lang
2013-01-17  1:46       ` Matt Seitz (matseitz)
2013-01-17  1:59         ` David Lang
2013-01-17  2:25           ` Matt Seitz (matseitz)
2013-01-17  2:49             ` David Lang
2013-01-17  5:20 Matt Seitz

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=20130117234912.GA14936@sigill.intra.peff.net \
    --to=peff@peff.net \
    --cc=David.Lang@uhn.ca \
    --cc=david@lang.hm \
    --cc=git@vger.kernel.org \
    --cc=ishchis2@gmail.com \
    --cc=kostix+git@007spb.ru \
    /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).