git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [BUG] girocco + git-svn: trunk is not propagated to master
@ 2010-02-19 13:22 Kirill Smelkov
  2010-02-20 23:42 ` Miklos Vajna
  0 siblings, 1 reply; 12+ messages in thread
From: Kirill Smelkov @ 2010-02-19 13:22 UTC (permalink / raw)
  To: Petr Baudis; +Cc: Miklos Vajna, git

Hello Petr, Miklos, All,

Recently I've setup an svn mirror on repo.or.cz for docutils projects[1].
Automatic regular updates by `git svn fetch` seem to work, so first
thanks for the service.

However master is not updated at all, and also refs/heads/* are not
populated from refs/remotes/* it seems.

In Girocco's taskd/clone.sh[2] and jobd/update.sh[3], I see there is a
nice setup for master to be bound to trunk and also refs/remotes/heads/*
to be propagates to refs/remotes/*:

---- taskd/clone.sh ----
svn://*)
    GIT_DIR=. git svn fetch
    # Neat Trick suggested by Miklos Vajna
    GIT_DIR=. git config remote.origin.url .
    GIT_DIR=. git config remote.origin.fetch +refs/remotes/heads/*:refs/heads/*
    GIT_DIR=. git config remote.origin.fetch +refs/remotes/trunk:refs/heads/master
    GIT_DIR=. git config remote.origin.fetch +refs/remotes/tags/*:refs/tags/*
    GIT_DIR=. git fetch

---- jobd/update.sh ----
svn://*)
        GIT_DIR=. bang git svn fetch
        GIT_DIR=. bang git fetch


But it seems it does not work. First I see there is a need for quoting,
so e.g. 

-   GIT_DIR=. git config remote.origin.fetch +refs/remotes/heads/*:refs/heads/*
+   GIT_DIR=. git config remote.origin.fetch '+refs/remotes/heads/*:refs/heads/*'

but I'm not sure it will fix the problem.

Can we do something about it please?


Thanks beforehand,
Kirill


[1] http://repo.or.cz/w/docutils.git
[2] http://repo.or.cz/w/girocco.git/blob/HEAD:/taskd/clone.sh#l25
[3] http://repo.or.cz/w/girocco.git/blob/HEAD:/jobd/update.sh#l41

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

end of thread, other threads:[~2010-05-06  8:30 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-02-19 13:22 [BUG] girocco + git-svn: trunk is not propagated to master Kirill Smelkov
2010-02-20 23:42 ` Miklos Vajna
2010-02-21 17:19   ` Kirill Smelkov
2010-02-22  8:50     ` [PATCH] Teach Girocco to mirror http:// style SVN repos Kirill Smelkov
2010-03-22 11:07       ` [PATCH 0/3] girocco + git-svn: trunk is not propagated to master + more... (resend) Kirill Smelkov
2010-03-22 11:07         ` [PATCH 1/3] taskd/clone: Don't forget to use 'git config --add' for multivars setup Kirill Smelkov
2010-03-22 11:08         ` [PATCH 2/3] taskd/clone: quote shell metacharacters where appropriate Kirill Smelkov
2010-03-22 11:08         ` [PATCH 3/3] Teach Girocco to mirror http:// style SVN repos Kirill Smelkov
2010-05-05 18:54           ` Petr Baudis
2010-05-06  7:18             ` Kirill Smelkov
2010-05-06  7:36               ` Petr Baudis
2010-05-06  8:32                 ` Kirill Smelkov

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).