Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2015-07-02 17:25:48 +0300
committerEdward Thomson <ethomson@edwardthomson.com>2015-07-02 19:35:43 +0300
commite069c621bdd62e603b048eb536f5a978a905b310 (patch)
treee3fa76833856f675d8eda911059a254465cfdf75 /tests/repo
parentaa92c318a235cc6a5230682b9c071eb35f9c5f4c (diff)
git__getenv: utf-8 aware env reader
Introduce `git__getenv` which is a UTF-8 aware `getenv` everywhere. Make `cl_getenv` use this to keep consistent memory handling around return values (free everywhere, as opposed to only some platforms).
Diffstat (limited to 'tests/repo')
-rw-r--r--tests/repo/init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/repo/init.c b/tests/repo/init.c
index 525020f5a..929d74180 100644
--- a/tests/repo/init.c
+++ b/tests/repo/init.c
@@ -713,7 +713,7 @@ void test_repo_init__at_filesystem_root(void)
git_buf root = GIT_BUF_INIT;
int root_len;
- if (!cl_getenv("GITTEST_INVASIVE_FS_STRUCTURE"))
+ if (!cl_is_env_set("GITTEST_INVASIVE_FS_STRUCTURE"))
cl_skip();
root_len = git_path_root(sandbox);