aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2011-10-30 14:25:43 +0100
committerGuido Günther <agx@sigxcpu.org>2011-10-30 16:09:02 +0100
commit5ceac3789094f70b45cc837ed7d4e85bc323731d (patch)
tree5086c15456131f57712a6cb1128452cba812588b /tests
parentea588a57e4588b4d676304b521c7695b0c2d9121 (diff)
GitRepository: Use update-ref to force a branch's head in bare repos
Diffstat (limited to 'tests')
-rw-r--r--tests/test_GitRepository.py8
1 files changed, 8 insertions, 0 deletions
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():