diff options
author | Russell Belfer <rb@github.com> | 2012-09-10 23:19:00 -0700 |
---|---|---|
committer | Russell Belfer <rb@github.com> | 2012-09-10 23:19:00 -0700 |
commit | 2130dee49ffee6c55b49f4f5cd447b2fb7e0acc3 (patch) | |
tree | b45bb1cef21c99f71927abd5ed3d580f484ec9b0 | |
parent | eff14d384c3b0696e3ef0979bfc58d5558a2ab23 (diff) | |
parent | 0e2dd29ba57580d3d81c62caa7ee4c3ca0a33829 (diff) | |
download | libgit2-2130dee49ffee6c55b49f4f5cd447b2fb7e0acc3.tar.gz |
Merge pull request #914 from authmillenon/index-fixes
Fix logical error in git_index_set_caps
-rw-r--r-- | src/index.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/index.c b/src/index.c index a1042b723..3a92c360b 100644 --- a/src/index.c +++ b/src/index.c @@ -247,7 +247,7 @@ int git_index_set_caps(git_index *index, unsigned int caps) if (git_config_get_bool(&val, cfg, "core.filemode") == 0) index->distrust_filemode = (val == 0); if (git_config_get_bool(&val, cfg, "core.symlinks") == 0) - index->no_symlinks = (val != 0); + index->no_symlinks = (val == 0); } else { index->ignore_case = ((caps & GIT_INDEXCAP_IGNORE_CASE) != 0); |