From 5ceac3789094f70b45cc837ed7d4e85bc323731d Mon Sep 17 00:00:00 2001 From: Guido Günther Date: Sun, 30 Oct 2011 14:25:43 +0100 Subject: GitRepository: Use update-ref to force a branch's head in bare repos --- tests/test_GitRepository.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tests') diff --git a/tests/test_GitRepository.py b/tests/test_GitRepository.py index 55bf9cbe..dd713c12 100644 --- a/tests/test_GitRepository.py +++ b/tests/test_GitRepository.py @@ -2,6 +2,13 @@ """ Test L{gbp.git.GitRepository} + +This testcase creates several repositores: + + - A repository at L{repo_dir} called I{repo} + - A bare repository at L{bare_dir} called I{bare} + - A clone of I{repo} below L{clone_dir} called I{clone} + - A mirror of I{repo} below L{mirror_clone_dir} called I{mirror} """ import os @@ -261,6 +268,7 @@ def test_mirror_clone(): >>> mirror.set_branch('foo') >>> mirror.branch 'foo' + >>> mirror.force_head('foo^') """ def test_clone(): -- cgit v1.2.3