mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-22 07:18:28 +01:00
Remove cmd refactoring and unit tests
This commit is contained in:
+7
-4
@@ -22,6 +22,10 @@ class GitWrapperI(object):
|
||||
def git_dir(self):
|
||||
return self._git_dir
|
||||
|
||||
@property
|
||||
def lock_file(self):
|
||||
return os.path.join(self.git_dir_abs, '.' + Config.CONFIG + '.lock')
|
||||
|
||||
@property
|
||||
def git_dir_abs(self):
|
||||
return os.path.realpath(self.git_dir)
|
||||
@@ -34,6 +38,9 @@ class GitWrapperI(object):
|
||||
def curr_commit(self):
|
||||
return self._commit
|
||||
|
||||
def is_ready_to_go(self):
|
||||
return True
|
||||
|
||||
|
||||
class GitWrapper(GitWrapperI):
|
||||
def __init__(self):
|
||||
@@ -157,10 +164,6 @@ class GitWrapper(GitWrapperI):
|
||||
Logger.printing('\t{} {}'.format(status, file))
|
||||
pass
|
||||
|
||||
@property
|
||||
def lock_file(self):
|
||||
return os.path.join(self.git_dir_abs, '.' + Config.CONFIG + '.lock')
|
||||
|
||||
@staticmethod
|
||||
def abs_paths_to_relative(files):
|
||||
cur_dir = os.path.realpath(os.curdir)
|
||||
|
||||
Reference in New Issue
Block a user