All of lore.kernel.org
 help / color / mirror / Atom feed
* [BUG?] push to mirrior interferes with parallel operations
@ 2010-11-18  7:39 Jan Hudec
  2010-11-18 17:50 ` Jeff King
  0 siblings, 1 reply; 15+ messages in thread
From: Jan Hudec @ 2010-11-18  7:39 UTC (permalink / raw)
  To: git

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>

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2010-11-19 21:55 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-18  7:39 [BUG?] push to mirrior interferes with parallel operations Jan Hudec
2010-11-18 17:50 ` 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

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.