Commit f0714dafa1a40a0e1b4ed2616a189c27c69fe22b

Sven Strickroth 2018-11-25T13:36:29

Fix warning C4133 incompatible types in MSVC Introduced in commit b433a22a979ae78c28c8b16f8c3487e2787cb73e. Signed-off-by: Sven Strickroth <email@cs-ware.de>

diff --git a/src/repository.c b/src/repository.c
index 4903880..cac25ad 100644
--- a/src/repository.c
+++ b/src/repository.c
@@ -1417,7 +1417,7 @@ static bool are_symlinks_supported(const char *wd_path)
 	git_buf path = GIT_BUF_INIT;
 	int fd;
 	struct stat st;
-	bool symlinks = false;
+	int symlinks = 0;
 
 	/*
 	 * To emulate Git for Windows, symlinks on Windows must be explicitly
@@ -1462,7 +1462,7 @@ static bool are_symlinks_supported(const char *wd_path)
 done:
 	git_buf_dispose(&path);
 	git_config_free(config);
-	return symlinks;
+	return symlinks != 0;
 }
 
 static int create_empty_file(const char *path, mode_t mode)