diff options
| author | Russell Belfer <rb@github.com> | 2013-03-18 14:19:35 -0700 |
|---|---|---|
| committer | Russell Belfer <rb@github.com> | 2013-03-18 14:19:35 -0700 |
| commit | 41954a49c12a72eda3b3fe02c2752f6831b5dbf9 (patch) | |
| tree | 4b9cff17fbd7172efddde4dba8e1d2f6b31e0c45 /tests-clar/clar_libgit2.c | |
| parent | 5540d9477ed143707435324e785336d254b12e47 (diff) | |
| download | libgit2-41954a49c12a72eda3b3fe02c2752f6831b5dbf9.tar.gz | |
Switch search paths to classic delimited strings
This switches the APIs for setting and getting the global/system
search paths from using git_strarray to using a simple string with
GIT_PATH_LIST_SEPARATOR delimited paths, just as the environment
PATH variable would contain. This makes it simpler to get and set
the value.
I also added code to expand "$PATH" when setting a new value to
embed the old value of the path. This means that I no longer
require separate actions to PREPEND to the value.
Diffstat (limited to 'tests-clar/clar_libgit2.c')
| -rw-r--r-- | tests-clar/clar_libgit2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests-clar/clar_libgit2.c b/tests-clar/clar_libgit2.c index 698aa90f0..8033cdc3e 100644 --- a/tests-clar/clar_libgit2.c +++ b/tests-clar/clar_libgit2.c @@ -136,7 +136,7 @@ int cl_rename(const char *source, const char *dest) #include <stdlib.h> char *cl_getenv(const char *name) { - return getenv(name); + return getenv(name); } int cl_setenv(const char *name, const char *value) |
