diff options
author | Russell Belfer <rb@github.com> | 2013-03-19 01:19:35 +0400 |
---|---|---|
committer | Russell Belfer <rb@github.com> | 2013-03-19 01:19:35 +0400 |
commit | 41954a49c12a72eda3b3fe02c2752f6831b5dbf9 (patch) | |
tree | 4b9cff17fbd7172efddde4dba8e1d2f6b31e0c45 /src/config.c | |
parent | 5540d9477ed143707435324e785336d254b12e47 (diff) |
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 'src/config.c')
-rw-r--r-- | src/config.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/config.c b/src/config.c index 85db0ab3c..8be5da6b7 100644 --- a/src/config.c +++ b/src/config.c @@ -521,7 +521,7 @@ static int git_config__find_file_to_path( if (path.size >= outlen) { giterr_set(GITERR_NOMEMORY, "Buffer is too short for the path"); - error = -1; + error = GIT_EBUFS; goto done; } |