summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-11-28 22:12:51 (GMT)
committerWerner Almesberger <werner@almesberger.net>2016-11-28 22:12:51 (GMT)
commit904ae01cbffeec04c400eb82e60f64ce64c3837c (patch)
tree0183cf9264603745c51774717f7c3880fc649d1f
parente21409c95470edcea268caa9d627820ccb46a923 (diff)
downloadeeshow-904ae01cbffeec04c400eb82e60f64ce64c3837c.zip
eeshow-904ae01cbffeec04c400eb82e60f64ce64c3837c.tar.gz
eeshow-904ae01cbffeec04c400eb82e60f64ce64c3837c.tar.bz2
file/git-hist.c (vcs_git_try): additional diagnostice
To debug mysterious lack of history experienced by "ceene".
-rw-r--r--file/git-hist.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/file/git-hist.c b/file/git-hist.c
index 93fe69f..ed2b673 100644
--- a/file/git-hist.c
+++ b/file/git-hist.c
@@ -211,10 +211,14 @@ bool vcs_git_try(const char *path)
* which would be at best confusing.
*/
if (git_repository_open_ext_caching(&repo, path,
- GIT_REPOSITORY_OPEN_CROSS_FS, NULL))
+ GIT_REPOSITORY_OPEN_CROSS_FS, NULL)) {
+ perror_git(path);
return 0;
- if (git_repository_is_empty(repo))
+ }
+ if (git_repository_is_empty(repo)) {
+ error("%s: repository is empty", path);
return 0;
+ }
/* check that the file is really in the repo */
if (!file_open_vcs(&file, path))