Commit 0e2dd29b by authmillenon

Fix logical error in git_index_set_caps

parent af6bcd8b
...@@ -247,7 +247,7 @@ int git_index_set_caps(git_index *index, unsigned int caps) ...@@ -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) if (git_config_get_bool(&val, cfg, "core.filemode") == 0)
index->distrust_filemode = (val == 0); index->distrust_filemode = (val == 0);
if (git_config_get_bool(&val, cfg, "core.symlinks") == 0) if (git_config_get_bool(&val, cfg, "core.symlinks") == 0)
index->no_symlinks = (val != 0); index->no_symlinks = (val == 0);
} }
else { else {
index->ignore_case = ((caps & GIT_INDEXCAP_IGNORE_CASE) != 0); index->ignore_case = ((caps & GIT_INDEXCAP_IGNORE_CASE) != 0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment