taskd/clone: Don't forget to use 'git config --add' for multivars setup
commit2013caca0406628b7ca607c76c76119014dbff94
authorKirill Smelkov <kirr@mns.spb.ru>
Mon, 22 Mar 2010 11:07:59 +0000 (22 14:07 +0300)
committerPetr Baudis <pasky@rover.dkm.cz>
Thu, 6 May 2010 07:34:21 +0000 (6 09:34 +0200)
tree5ad07050341b3de7dac8c3d9c9d362cb933b9deb
parent6e6469453e1a38974e0680d12b71abae0ee3980a
taskd/clone: Don't forget to use 'git config --add' for multivars setup

Neat Trick suggested by Miklos Vajna setups origin remote as '.' and
also setups 3 refspecs for remotes.origin.fetch.

The trick is nice indeed, but in order to setup config multivar, one
have to use explicit --add option for `git config' (*) or else old var
value is just replaced.

The problem showed in svn-mirror repositories with stale master (was not
updating from trunk) and also as lack of branches -- that's
understandable -- we had '+refs/remotes/tags/*:refs/tags/*' config last,
and tags were working OK.

Fix it.

(*) explicit --add was needed since 89c4afe0 (Add --add option to
    git-repo-config) in git.git, which dates to git v1.4.4.2-225-g89c4afe
taskd/clone.sh