diff options
| author | Vicent Martà <tanoku@gmail.com> | 2011-07-05 06:32:58 -0700 |
|---|---|---|
| committer | Vicent Martà <tanoku@gmail.com> | 2011-07-05 06:32:58 -0700 |
| commit | 71a8e48455757d107ea7a65a8bdc72362dfc10fe (patch) | |
| tree | b85ca654853e79337946f1498eec317397361a7b /src | |
| parent | d830919a2cdd59ad9f9d0e9b44b7a6a0e331799c (diff) | |
| parent | ed72182bcf8117fd6fce069b7b55dfdb6562e0c3 (diff) | |
| download | libgit2-71a8e48455757d107ea7a65a8bdc72362dfc10fe.tar.gz | |
Merge pull request #297 from nulltoken/patch-5
Fix MSVC compilation issue
Diffstat (limited to 'src')
| -rw-r--r-- | src/repository.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/repository.c b/src/repository.c index 843582433..123765ff5 100644 --- a/src/repository.c +++ b/src/repository.c @@ -605,7 +605,7 @@ static int repo_init_createhead(git_repository *repo) return git_reference_create_symbolic(&head_reference, repo, GIT_HEAD_FILE, GIT_REFS_HEADS_MASTER_FILE, 0); } -static int repo_init_structure(const char *git_dir) +static int repo_init_structure(const char *git_dir, int is_bare) { const int mode = 0755; /* or 0777 ? */ int error; @@ -617,7 +617,7 @@ static int repo_init_structure(const char *git_dir) #ifdef GIT_WIN32 /* Hides the ".git" directory */ - if (!results->is_bare) { + if (!is_bare) { error = p_hide_directory__w32(git_dir); if (error < GIT_SUCCESS) return git__rethrow(error, "Failed to initialize repository structure"); @@ -668,7 +668,7 @@ int git_repository_init(git_repository **repo_out, const char *path, unsigned is return repo_init_reinit(repository_path, is_bare); } - error = repo_init_structure(repository_path); + error = repo_init_structure(repository_path, is_bare); if (error < GIT_SUCCESS) goto cleanup; |
