summaryrefslogtreecommitdiffstats
path: root/core/save-git.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2020-04-09 16:59:12 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-04-09 17:05:30 -0700
commit67a717dc057a5936ae1f5820fc6c470524213b97 (patch)
tree520b95222e248e926e0622dae315bf1e74156570 /core/save-git.c
parent3828ec6097da00e18c6ef12c85129a77bea83896 (diff)
downloadsubsurface-67a717dc057a5936ae1f5820fc6c470524213b97.tar.gz
cleanup: remove support for ancient versions of libgit2
We require a minimum of libgit2 0.26. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core/save-git.c')
-rw-r--r--core/save-git.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/core/save-git.c b/core/save-git.c
index a304e0d94..7bf7b2e1d 100644
--- a/core/save-git.c
+++ b/core/save-git.c
@@ -1022,10 +1022,8 @@ int update_git_checkout(git_repository *repo, git_object *parent, git_tree *tree
static int get_authorship(git_repository *repo, git_signature **authorp)
{
-#if LIBGIT2_VER_MAJOR || LIBGIT2_VER_MINOR >= 20
if (git_signature_default(authorp, repo) == 0)
return 0;
-#endif
/* try to fetch the user info from the OS, otherwise use default values. */
struct user_info user = { .name = NULL, .email = NULL };
subsurface_user_info(&user);