diff options
| author | Edward Thomson <ethomson@microsoft.com> | 2013-11-04 18:28:57 -0500 |
|---|---|---|
| committer | Edward Thomson <ethomson@microsoft.com> | 2013-11-04 22:33:05 -0500 |
| commit | 1d3a8aeb4bd032d0bf34039fbcb308fba06b862a (patch) | |
| tree | 8e9165cfd8c4c3919abd2d4f301b1f45e281d5eb /tests-clar/index | |
| parent | f966acd13366d21e0b9beeecf021c0114596c716 (diff) | |
| download | libgit2-1d3a8aeb4bd032d0bf34039fbcb308fba06b862a.tar.gz | |
move mode_t to filebuf_open instead of _commit
Diffstat (limited to 'tests-clar/index')
| -rw-r--r-- | tests-clar/index/tests.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests-clar/index/tests.c b/tests-clar/index/tests.c index 09b05bf6e..e5202980c 100644 --- a/tests-clar/index/tests.c +++ b/tests-clar/index/tests.c @@ -224,9 +224,9 @@ void test_index_tests__add(void) /* Create a new file in the working directory */ cl_git_pass(git_futils_mkpath2file("myrepo/test.txt", 0777)); - cl_git_pass(git_filebuf_open(&file, "myrepo/test.txt", 0)); + cl_git_pass(git_filebuf_open(&file, "myrepo/test.txt", 0, 0666)); cl_git_pass(git_filebuf_write(&file, "hey there\n", 10)); - cl_git_pass(git_filebuf_commit(&file, 0666)); + cl_git_pass(git_filebuf_commit(&file)); /* Store the expected hash of the file/blob * This has been generated by executing the following @@ -474,7 +474,7 @@ void test_index_tests__elocked(void) cl_git_pass(git_repository_index(&index, repo)); /* Lock the index file so we fail to lock it */ - cl_git_pass(git_filebuf_open(&file, index->index_file_path, 0)); + cl_git_pass(git_filebuf_open(&file, index->index_file_path, 0, 0666)); error = git_index_write(index); cl_assert_equal_i(GIT_ELOCKED, error); |
