Add config option for repocache git-fetch refs hack
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Fri, 19 Sep 2014 08:14:24 +0000 (11:14 +0300)
committerMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Fri, 19 Sep 2014 08:41:03 +0000 (11:41 +0300)
commitd6d727c45492a63a87fe27bff6288fbc96cf03ff
treefabfa217f094622e534e6eaf2ca40602dfcb5f49
parent673807ed06ca20bd440b1e89dc8231c1efed1711
Add config option for repocache git-fetch refs hack

New config file option 'repo-cache-refs-hack' for enabling refs hack in
gbp-repocache. The option is disabled, by default.

Enabling the hack makes it possible to fetch/clone remote repositories
that have branches (refs/heads/*) that point to tag objects. This is
possible in Gerrit repositories - "pure" Git repositories managed
by Git tools shouldn't have such branches as Git sanity checking
prevents them (which is the reason this hack is needed).

Change-Id: Ic3a1814975f3c11d6c01734416f64347b9c73986
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
config/gbs
obs_service_gbs/command.py
packaging/obs-service-gbs.spec
tests/test_obs_service_gbs.py