@@ -257,20 +257,20 @@ def test_resolve_commit_not_on_branch(script, tmp_path):
257
257
repo_file = repo_path / "file.txt"
258
258
clone_path = repo_path / "clone"
259
259
repo_path .mkdir ()
260
- script .run ("git" , "init" , cwd = repo_path )
261
- repo_file .write_text ("." )
262
- script .run ("git" , "add" , "file.txt" , cwd = repo_path )
263
- script .run ("git" , "commit" , "-m" , "initial commit" , cwd = repo_path )
264
- script .run ("git" , "checkout" , "-b" , "abranch" , cwd = repo_path )
260
+ script .run ("git" , "init" , cwd = str ( repo_path ) )
261
+ repo_file .write_text (u "." )
262
+ script .run ("git" , "add" , "file.txt" , cwd = str ( repo_path ) )
263
+ script .run ("git" , "commit" , "-m" , "initial commit" , cwd = str ( repo_path ) )
264
+ script .run ("git" , "checkout" , "-b" , "abranch" , cwd = str ( repo_path ) )
265
265
# create a commit
266
- repo_file .write_text (".." )
267
- script .run ("git" , "commit" , "-a" , "-m" , "commit 1" , cwd = repo_path )
266
+ repo_file .write_text (u ".." )
267
+ script .run ("git" , "commit" , "-a" , "-m" , "commit 1" , cwd = str ( repo_path ) )
268
268
commit = script .run (
269
- "git" , "rev-parse" , "HEAD" , cwd = repo_path
269
+ "git" , "rev-parse" , "HEAD" , cwd = str ( repo_path )
270
270
).stdout .strip ()
271
271
# make sure our commit is not on a branch
272
- script .run ("git" , "checkout" , "master" , cwd = repo_path )
273
- script .run ("git" , "branch" , "-D" , "abranch" , cwd = repo_path )
272
+ script .run ("git" , "checkout" , "master" , cwd = str ( repo_path ) )
273
+ script .run ("git" , "branch" , "-D" , "abranch" , cwd = str ( repo_path ) )
274
274
# create a ref that points to our commit
275
275
(repo_path / ".git" / "refs" / "myrefs" ).mkdir (parents = True )
276
276
(repo_path / ".git" / "refs" / "myrefs" / "myref" ).write_text (commit )
0 commit comments