From 6d1278d05aed1fd8081343f018ffaed1f5c75ff6 Mon Sep 17 00:00:00 2001
From: felmer <franz-josef.elmer@id.ethz.ch>
Date: Tue, 16 Feb 2021 07:15:59 +0100
Subject: [PATCH] SSDM-10611: adapting in backward compatible way to work also
 with git-annex version 8

---
 obis/src/python/obis/dm/git.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/obis/src/python/obis/dm/git.py b/obis/src/python/obis/dm/git.py
index 13b3d421de0..7c406ceb6e6 100644
--- a/obis/src/python/obis/dm/git.py
+++ b/obis/src/python/obis/dm/git.py
@@ -44,7 +44,7 @@ class GitWrapper(object):
             first_line = result.output.split("\n")[0].split(":")
             if len(first_line) > 1:
                 self.annex_version = first_line[1].strip()
-                self.annex_major_version = int(self.version.split(".")[0])
+                self.annex_major_version = int(self.annex_version.split(".")[0])
         return True
 
     def git_init(self):
-- 
GitLab