Skip to content

Commit 4ebf43a

Browse files
committed
small fix
1 parent 9766996 commit 4ebf43a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/test_branch.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ def test_branch_create_delete(xtl_clone, git2cpp_path, tmp_path, run_in_tmp_path
2828
assert(p_list.stdout == ' foregone\n* master\n')
2929

3030
# Problem of right for "delete"? Maybe need a -D instead of -d
31-
del_cmd = [git2cpp_path, 'branch', '-d', 'foregone']
32-
p_del = subprocess.run(del_cmd, capture_output=True, cwd=tmp_path, text=True)
31+
del_cmd = [git2cpp_path, 'branch', '-d', '-f', 'foregone']
32+
p_del = subprocess.run(del_cmd, capture_output=True, cwd=xtl_path, text=True)
3333
assert p_del.returncode == 0
3434

3535
p_list2 = subprocess.run(list_cmd, capture_output=True, cwd=xtl_path, text=True)

0 commit comments

Comments
 (0)