diff options
| author | Vicent Martà <vicent@github.com> | 2012-02-04 08:38:46 -0800 |
|---|---|---|
| committer | Vicent Martà <vicent@github.com> | 2012-02-04 08:38:46 -0800 |
| commit | 1f0c198468309899655562bba08a70dd0dbd1ea6 (patch) | |
| tree | f9ba87532e6c97eb21b5bf264d2e222238a69d9c /src | |
| parent | 0a4aebb097bbe7a940c0f73174b756027105d92f (diff) | |
| parent | 99abb79d53781dda9bbdc7b896eaa383d8789cb3 (diff) | |
| download | libgit2-1f0c198468309899655562bba08a70dd0dbd1ea6.tar.gz | |
Merge pull request #549 from nulltoken/fix/open-repo-with-workdir-path
Fix trailing slash issue to the gitdir path when the repo is opened through a workdir
Diffstat (limited to 'src')
| -rw-r--r-- | src/repository.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/repository.c b/src/repository.c index 74f0d8f98..536522a9b 100644 --- a/src/repository.c +++ b/src/repository.c @@ -166,7 +166,7 @@ int git_repository_open(git_repository **repo_out, const char *path) * of the working dir, by testing if it contains a `.git` * folder inside of it. */ - git_path_contains_dir(&path_buf, DOT_GIT, 1); /* append on success */ + git_path_contains_dir(&path_buf, GIT_DIR, 1); /* append on success */ /* ignore error, since it just means `path/.git` doesn't exist */ if (quickcheck_repository_dir(&path_buf) < GIT_SUCCESS) { |
