mirror of
https://git.proxmox.com/git/libgit2
synced 2025-11-03 06:26:04 +00:00
commit
8371457ce2
@ -1567,8 +1567,10 @@ int git_repository_head_unborn(git_repository *repo)
|
||||
error = git_repository_head(&ref, repo);
|
||||
git_reference_free(ref);
|
||||
|
||||
if (error == GIT_EUNBORNBRANCH)
|
||||
if (error == GIT_EUNBORNBRANCH) {
|
||||
giterr_clear();
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (error < 0)
|
||||
return -1;
|
||||
|
||||
@ -370,8 +370,8 @@ void test_stash_save__including_untracked_without_any_untracked_file_creates_an_
|
||||
|
||||
void test_stash_save__ignored_directory(void)
|
||||
{
|
||||
cl_git_pass(mkdir("stash/ignored_directory", 0777));
|
||||
cl_git_pass(mkdir("stash/ignored_directory/sub", 0777));
|
||||
cl_git_pass(p_mkdir("stash/ignored_directory", 0777));
|
||||
cl_git_pass(p_mkdir("stash/ignored_directory/sub", 0777));
|
||||
cl_git_mkfile("stash/ignored_directory/sub/some_file", "stuff");
|
||||
|
||||
assert_status(repo, "ignored_directory/sub/some_file", GIT_STATUS_WT_NEW);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user