We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c11ece commit 3256813Copy full SHA for 3256813
test/test_nonunicode.py
@@ -41,7 +41,8 @@ def bstring(request):
41
42
43
def test_nonunicode_branchname(testrepo, bstring):
44
- testrepo.branches.local.create(bstring.decode("utf8", errors="surrogateescape"),commit=testrepo.head.target)
+ cmd = b"git checkout -b " + bstring
45
+ subprocess.check_output(cmd.decode('utf8',errors='surrogateescape').split(" "), cwd=testrepo.workdir)
46
newrepo = pygit2.clone_repository(
47
testrepo.workdir,
48
os.path.join(os.path.dirname(testrepo.workdir), "test_nonunicode_repo"),
0 commit comments