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
8371457c
Commit
8371457c
authored
Oct 09, 2014
by
Edward Thomson
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2597 from ethomson/fixup
Trivial fixups
parents
eecc1772
7c9bf891
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
src/repository.c
+3
-1
tests/stash/save.c
+2
-2
No files found.
src/repository.c
View file @
8371457c
...
@@ -1567,8 +1567,10 @@ int git_repository_head_unborn(git_repository *repo)
...
@@ -1567,8 +1567,10 @@ int git_repository_head_unborn(git_repository *repo)
error
=
git_repository_head
(
&
ref
,
repo
);
error
=
git_repository_head
(
&
ref
,
repo
);
git_reference_free
(
ref
);
git_reference_free
(
ref
);
if
(
error
==
GIT_EUNBORNBRANCH
)
if
(
error
==
GIT_EUNBORNBRANCH
)
{
giterr_clear
();
return
1
;
return
1
;
}
if
(
error
<
0
)
if
(
error
<
0
)
return
-
1
;
return
-
1
;
...
...
tests/stash/save.c
View file @
8371457c
...
@@ -370,8 +370,8 @@ void test_stash_save__including_untracked_without_any_untracked_file_creates_an_
...
@@ -370,8 +370,8 @@ void test_stash_save__including_untracked_without_any_untracked_file_creates_an_
void
test_stash_save__ignored_directory
(
void
)
void
test_stash_save__ignored_directory
(
void
)
{
{
cl_git_pass
(
mkdir
(
"stash/ignored_directory"
,
0777
));
cl_git_pass
(
p_
mkdir
(
"stash/ignored_directory"
,
0777
));
cl_git_pass
(
mkdir
(
"stash/ignored_directory/sub"
,
0777
));
cl_git_pass
(
p_
mkdir
(
"stash/ignored_directory/sub"
,
0777
));
cl_git_mkfile
(
"stash/ignored_directory/sub/some_file"
,
"stuff"
);
cl_git_mkfile
(
"stash/ignored_directory/sub/some_file"
,
"stuff"
);
assert_status
(
repo
,
"ignored_directory/sub/some_file"
,
GIT_STATUS_WT_NEW
);
assert_status
(
repo
,
"ignored_directory/sub/some_file"
,
GIT_STATUS_WT_NEW
);
...
...
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