summaryrefslogtreecommitdiff
path: root/file/git-util.c
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2017-03-04 02:25:44 (GMT)
committerWerner Almesberger <werner@almesberger.net>2017-03-04 02:25:44 (GMT)
commit4163d5679aff245ebf46372c3895966526bb2d9d (patch)
tree8c8aae921661d498adbb9508f75ac465a7f34245 /file/git-util.c
parent163d09b57da266a99dc098cd8d1b3d708644cb80 (diff)
downloadeeshow-4163d5679aff245ebf46372c3895966526bb2d9d.zip
eeshow-4163d5679aff245ebf46372c3895966526bb2d9d.tar.gz
eeshow-4163d5679aff245ebf46372c3895966526bb2d9d.tar.bz2
file/git-util.c (git_repository_open_ext_caching): use correct path if we can
Use only "." as fallback if we can't figure out the correct path.
Diffstat (limited to 'file/git-util.c')
-rw-r--r--file/git-util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/file/git-util.c b/file/git-util.c
index b6de598..3658ed5 100644
--- a/file/git-util.c
+++ b/file/git-util.c
@@ -147,7 +147,7 @@ int git_repository_open_ext_caching(git_repository **out, const char *path,
slash = 0;
else
strcpy(tmp, ".");
- res = do_git_repository_open_ext_caching(out, ".", flags, ceiling_dirs);
+ res = do_git_repository_open_ext_caching(out, tmp, flags, ceiling_dirs);
free(tmp);
return res;
}