services/obs-service-git-buildpackage.git
11 years agoCachedRepository: option to not update submodules
Markus Lehtonen [Thu, 4 Apr 2013 08:40:22 +0000 (11:40 +0300)]
CachedRepository: option to not update submodules

Change-Id: Ifbc603e1355da46a2eb1c0e21e5db1ac0897d885
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
11 years agoUtilize non-bare mirrored git clone
Markus Lehtonen [Thu, 28 Mar 2013 07:46:09 +0000 (09:46 +0200)]
Utilize non-bare mirrored git clone

Makes submodules available. Also, makes it possible to utilize the
cached repositories for GBS.

Instead of a bare mirrored clone, create a special clone that mirrors
all remote refs, and, has a working copy. In short:
- create a git config that mirrors all remote refs directly, we don't
  expect any local changes or refs
- always fetch HEAD of remote repo
- when updating from remote, do a fetch with force and prune so that we
  stay in sync with the remote

Leaves the support for bare (mirrored) repos into CachedRepo class,
although this is not used by the service, currently.

Change-Id: I1496425b50a990aa83b5f08a03eeacafb074bb7b
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
11 years agotests: more extensive unit tests
Markus Lehtonen [Mon, 25 Mar 2013 13:49:13 +0000 (15:49 +0200)]
tests: more extensive unit tests

Change-Id: I7c030d50d8a5bafa93073c7f33e6633ba6e6365c
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
11 years agopackaging: initial RPM packaging
Markus Lehtonen [Wed, 27 Mar 2013 10:15:01 +0000 (12:15 +0200)]
packaging: initial RPM packaging

Change-Id: I57732c6e3ef2d3d5b322b4e2b7328a38f5847db0
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
11 years agoAdd .gbp.conf
Markus Lehtonen [Wed, 27 Mar 2013 10:15:34 +0000 (12:15 +0200)]
Add .gbp.conf

Change-Id: Idafa14514d1787186f9e4e3b4280831004697cc7
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
11 years agotests: Add initial unit tests
Markus Lehtonen [Sat, 23 Mar 2013 06:55:25 +0000 (08:55 +0200)]
tests: Add initial unit tests

Very simple basic tests.

Also, add config files for nose and coverage.

Change-Id: I37ab5d2027701799c8502df41e97e1f0cf089c03
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
11 years agoUse python distutils
Markus Lehtonen [Sat, 23 Mar 2013 07:53:14 +0000 (09:53 +0200)]
Use python distutils

Change-Id: I3172b0abadb90e079494b5b1607511e1509c88f8
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
11 years agoInitial version
Markus Lehtonen [Thu, 21 Mar 2013 14:39:11 +0000 (16:39 +0200)]
Initial version

First version of the git-buildpackage OBS source service. Contains very
basic functionality for basically specifying the (remote) repo url and
revision to be exported.

Also, adds an implementation of a thread-safe repository cache.

Change-Id: I7dab6216ad6dce19415daae06f3f4dfec4e33da3
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
11 years agoInitial empty repository
Eduard Bartosh [Wed, 27 Mar 2013 08:46:16 +0000 (01:46 -0700)]
Initial empty repository