Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
71fafae1
Commit
71fafae1
authored
Jul 11, 2022
by
yuangli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tests: error when create branch with invalid name
parent
e4f98ac4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
tests/refs/branches/create.c
+8
-0
No files found.
tests/refs/branches/create.c
View file @
71fafae1
...
...
@@ -277,3 +277,11 @@ void test_refs_branches_create__name_vs_namespace_fail(void)
branch
=
NULL
;
}
}
void
test_refs_branches_create__error_when_create_branch_with_invalid_name
(
void
)
{
retrieve_known_commit
(
&
target
,
repo
);
cl_git_fail
(
git_branch_create
(
&
branch
,
repo
,
"HEAD"
,
target
,
0
));
cl_git_fail
(
git_branch_create
(
&
branch
,
repo
,
"-dash"
,
target
,
0
));
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment