Add config option for git-fetch refs hack
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Thu, 18 Sep 2014 13:04:12 +0000 (16:04 +0300)
committerMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Thu, 18 Sep 2014 13:04:12 +0000 (16:04 +0300)
commitfc9b1af64e35a6b9da14265ab1b836011296262d
treec7664ce2bf0f87742a104cfde64f60e428062612
parent547a3f7d1885f4ce868413b0ab321d2dd97daa85
Add config option for git-fetch refs hack

New config file option 'repo-cache-refs-hack' for enabling the refs hack
in 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 may
encountered with 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: I5e0203d4f0f93c18c2f70c76ef9c8b6ff536fd67
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
config/git-buildpackage
obs_service_gbp/command.py
obs_service_gbp_utils/__init__.py
tests/test_obs_service_gbp.py