Commit 2130dee49ffee6c55b49f4f5cd447b2fb7e0acc3

Russell Belfer 2012-09-10T23:19:00

Merge pull request #914 from authmillenon/index-fixes Fix logical error in git_index_set_caps

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/index.c b/src/index.c
index a1042b7..3a92c36 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);