libgit2/libgit2 — Issue #479: git_repository_open does not detect non bare working copy
Author: csware
Created: 2011-11-12 00:32:21+00:00
State: open

Revision 4ce16ed82f658e242ffa91ce0abf98dfe45a04ad (suppose also the current development branch) does not correctly detect non bare working copies.

Example:
- checkout TortoiseGit to d:\TortoiseGit (non bare, so d:\TortoiseGit\.git exists)
- ret = git_repository_open(&repo, "d:\TortoiseGit");
ret equals 7 (and repo->is_bare = 1)

if I call
- ret = git_repository_open(&repo, "d:\TortoiseGit\.git");
ret equals 0
but git_repository_index(index, repo) returns GIT_EBAREINDEX