git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Jan Hudec" <bulb@ucw.cz>
To: git@vger.kernel.org
Subject: [BUG?] push to mirrior interferes with parallel operations
Date: Thu, 18 Nov 2010 08:39:17 +0100 (CET)	[thread overview]
Message-ID: <e355bb33c6192a6a29de56c7be93278e.squirrel@artax.karlin.mff.cuni.cz> (raw)

Hello all,

I have a repository populated with git-svn. For backup I have
a mirror remote set up. Today I ran 'git push backup' on one
terminal and before it finished (it's just on a network
filesystem, so it's kind of slow), I ran 'git svn fetch' on
another. And than I didn't see any results of that fetch.

What happened is that the push took the values of all the
refs -- including those in refs/remotes/svn as it's a mirror
for pushing them to the backup. Meanwhile the fetch udpated
them. But when the push finished with the remote repo, it
updated the local refs back to the values it pushed, undoing
the effects of that fetch.

The repository was created with simple:

    git remote add --mirror backup /mnt/server/path/to/repo.git

which created configuration:

    [remote "backup"]
	url = /mnt/server/path/to/repo.git
	fetch = +refs/*:refs/*
	mirror = true

So, should the push be more careful when updating the refs,
not simulate the pull back when doing a --mirror, or the
git remote add not add the 'fetch = +refs/*:refs/*' line?

Thanks,
Jan

-- 
                                        - Jan Hudec <bulb@ucw.cz>

             reply	other threads:[~2010-11-18  7:39 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-18  7:39 Jan Hudec [this message]
2010-11-18 17:50 ` [BUG?] push to mirrior interferes with parallel operations Jeff King
2010-11-18 17:58   ` Jeff King
2010-11-18 18:49     ` Does it make sense to pull from mirror? (Re: [BUG?] push to mirrior interferes with parallel operations) Jan Hudec
2010-11-18 19:05       ` Jeff King
2010-11-18 18:42   ` [BUG?] push to mirrior interferes with parallel operations Jan Hudec
2010-11-18 19:04     ` Jeff King
2010-11-19 19:40       ` Andreas Schwab
2010-11-19 19:46         ` Jeff King
2010-11-19 21:18           ` Andreas Schwab
2010-11-19 21:21             ` Jeff King
2010-11-19 21:29               ` Andreas Schwab
2010-11-19 21:51                 ` Jeff King
2010-11-19 21:32         ` Jonathan Nieder
2010-11-19 21:54           ` Jeff King

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=e355bb33c6192a6a29de56c7be93278e.squirrel@artax.karlin.mff.cuni.cz \
    --to=bulb@ucw.cz \
    --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).