summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2017-06-14 18:27:07 (GMT)
committerWerner Almesberger <werner@almesberger.net>2017-06-14 18:40:29 (GMT)
commitce43563fec946939a0974267263752fe6c83aa89 (patch)
tree7ec4226e76431d201e5aa9e49f511097ffd7f013
parented41bda88f10633acec74e5d4d1123eb8d580fc9 (diff)
downloadeeshow-ce43563fec946939a0974267263752fe6c83aa89.zip
eeshow-ce43563fec946939a0974267263752fe6c83aa89.tar.gz
eeshow-ce43563fec946939a0974267263752fe6c83aa89.tar.bz2
file/git-util.c (git_repository_open_ext_caching): fix stupid typo
This prevented eeshow from accessing the history when using a recent version of libgit2. Reported by Timur Kristof.
-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 3658ed5..78a500e 100644
--- a/file/git-util.c
+++ b/file/git-util.c
@@ -144,7 +144,7 @@ int git_repository_open_ext_caching(git_repository **out, const char *path,
slash = strrchr(tmp, '/');
if (slash)
- slash = 0;
+ *slash = 0;
else
strcpy(tmp, ".");
res = do_git_repository_open_ext_caching(out, tmp, flags, ceiling_dirs);