Commit 178376025cc70cc8da3ca58699717f2cc8e495a7

Vicent Marti 2011-07-05T15:38:26

repository: Fix unused parameter in Unix systems

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff --git a/src/repository.c b/src/repository.c
index 123765f..2cdb1c4 100644
--- a/src/repository.c
+++ b/src/repository.c
@@ -615,14 +615,14 @@ static int repo_init_structure(const char *git_dir, int is_bare)
 	if (git_futils_mkdir_r(git_dir, mode))
 		return git__throw(GIT_ERROR, "Failed to initialize repository structure. Could not mkdir");
 
-#ifdef GIT_WIN32
 	/* Hides the ".git" directory */
 	if (!is_bare) {
+#ifdef GIT_WIN32
 		error = p_hide_directory__w32(git_dir);
 		if (error < GIT_SUCCESS)
 			return git__rethrow(error, "Failed to initialize repository structure");
-	}
 #endif
+	}
 
 	/* Creates the '/objects/info/' directory */
 	git_path_join(temp_path, git_dir, GIT_OBJECTS_INFO_DIR);