summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVicent Martí <vicent@github.com>2012-02-04 08:38:46 -0800
committerVicent Martí <vicent@github.com>2012-02-04 08:38:46 -0800
commit1f0c198468309899655562bba08a70dd0dbd1ea6 (patch)
treef9ba87532e6c97eb21b5bf264d2e222238a69d9c /src
parent0a4aebb097bbe7a940c0f73174b756027105d92f (diff)
parent99abb79d53781dda9bbdc7b896eaa383d8789cb3 (diff)
downloadlibgit2-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.c2
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) {