[BUG?] push to mirrior interferes with parallel operations

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxx>

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]