diff options
| author | Russell Belfer <rb@github.com> | 2012-08-22 16:03:35 -0700 |
|---|---|---|
| committer | Russell Belfer <rb@github.com> | 2012-08-22 16:16:42 -0700 |
| commit | 85bd17462662905dfdf9247b262480280a616ad4 (patch) | |
| tree | 88454804c539284aa6cb216943d0a53b7cde211b /tests-clar | |
| parent | b769e936d0118b7c3870ffc082b44254164bfedd (diff) | |
| download | libgit2-85bd17462662905dfdf9247b262480280a616ad4.tar.gz | |
Some cleanup suggested during review
This cleans up a number of items suggested during code review
with @vmg, including:
* renaming "outside repo" config API to `git_config_open_default`
* killing the `git_config_open_global` API
* removing the `git_` prefix from the static functions in fileops
* removing some unnecessary functionality from the "cp" command
Diffstat (limited to 'tests-clar')
| -rw-r--r-- | tests-clar/core/copy.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/tests-clar/core/copy.c b/tests-clar/core/copy.c index f39e783af..2fdfed863 100644 --- a/tests-clar/core/copy.c +++ b/tests-clar/core/copy.c @@ -10,7 +10,7 @@ void test_core_copy__file(void) cl_git_mkfile("copy_me", content); - cl_git_pass(git_futils_cp_withpath("copy_me", "copy_me_two", 0664, 0775)); + cl_git_pass(git_futils_cp("copy_me", "copy_me_two", 0664)); cl_git_pass(git_path_lstat("copy_me_two", &st)); cl_assert(S_ISREG(st.st_mode)); @@ -29,10 +29,13 @@ void test_core_copy__file_in_dir(void) cl_git_mkfile("an_dir/in_a_dir/copy_me", content); cl_assert(git_path_isdir("an_dir")); - cl_git_pass(git_futils_cp_withpath + cl_git_pass(git_futils_mkpath2file + ("an_dir/second_dir/and_more/copy_me_two", 0775)); + + cl_git_pass(git_futils_cp ("an_dir/in_a_dir/copy_me", "an_dir/second_dir/and_more/copy_me_two", - 0664, 0775)); + 0664)); cl_git_pass(git_path_lstat("an_dir/second_dir/and_more/copy_me_two", &st)); cl_assert(S_ISREG(st.st_mode)); |
