Commit c3b427bac4b64aa93920f60a2ee61e7c6a670799

Edward Thomson 2018-11-25T13:59:22

Merge pull request #4896 from csware/C4133 Fix warning C4133 incompatible types in MSVC

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)