From 835c76f488a4d2c74adc569e69da1f87c25518df Mon Sep 17 00:00:00 2001
From: Chandrasekhar Ramakrishnan <chandrasekhar.ramakrishnan@id.ethz.ch>
Date: Fri, 17 Mar 2017 10:09:17 +0100
Subject: [PATCH] SSDM-4670: Implement sync in the no-git data management
 class.

---
 src/python/OBis/obis/dm/data_mgmt.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/python/OBis/obis/dm/data_mgmt.py b/src/python/OBis/obis/dm/data_mgmt.py
index 5bbc2657826..9c21caa8b49 100644
--- a/src/python/OBis/obis/dm/data_mgmt.py
+++ b/src/python/OBis/obis/dm/data_mgmt.py
@@ -190,7 +190,7 @@ class AbstractDataMgmt(metaclass=abc.ABCMeta):
     @abc.abstractmethod
     def sync(self):
         """
-        Syc the current repo.
+        Sync the current repo.
 
         This connects to openBIS and creates a data set in openBIS.
         :return:
@@ -210,6 +210,9 @@ class NoGitDataMgmt(AbstractDataMgmt):
     def commit(self, msg, auto_add=True, sync=True):
         self.error_raise("commit", "No git command found.")
 
+    def sync(self):
+        self.error_raise("commit", "No git command found.")
+
 
 class GitDataMgmt(AbstractDataMgmt):
     """DataMgmt operations in normal state."""
-- 
GitLab