Skip to content

Commit 3ee5cfc

Browse files
committed
copilot revision
1 parent aac0ece commit 3ee5cfc

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/wrapper/branch_wrapper.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ branch_wrapper::branch_wrapper(git_reference* polna_ref)
1313
branch_wrapper::~branch_wrapper()
1414
{
1515
git_reference_free(p_resource);
16-
p_resource=nullptr;
16+
p_resource = nullptr;
1717
}
1818

1919
std::string_view branch_wrapper::name() const

src/wrapper/repository_wrapper.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,6 @@ branch_wrapper repository_wrapper::find_branch(const std::string& name)
4949
branch_iterator repository_wrapper::iterate_branches(git_branch_t type) const
5050
{
5151
git_branch_iterator* iter = nullptr;
52-
git_branch_iterator_new(&iter, *this, type);
52+
throwIfError(git_branch_iterator_new(&iter, *this, type));
5353
return branch_iterator(iter);
5454
}

test/test_branch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def rename_git():
1212
def test_branch_list(rename_git, git2cpp_path):
1313
cmd = [git2cpp_path, 'branch']
1414
p = subprocess.run(cmd, capture_output=True, cwd="test/data/status_data", text=True)
15-
assert('main' in p.stdout == 'main\n')
15+
assert(p.stdout == 'main\n')
1616

1717
def test_branch_create_delete(rename_git, git2cpp_path):
1818
create_cmd = [git2cpp_path, 'branch', 'foregone']

0 commit comments

Comments
 (0)