mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-06 07:18:28 +01:00
git: use full sha
With bigger projects possibility of short id is very possible and we really don't want that to happen, so lets use full sha from now on. Fixes #229 Signed-off-by: Ruslan Kuprieiev <[email protected]>
This commit is contained in:
+1
-1
@@ -154,7 +154,7 @@ class GitWrapper(GitWrapperI):
|
||||
def curr_commit(self):
|
||||
Logger.debug('[dvc-git] Getting current git commit. Command: git rev-parse --short HEAD')
|
||||
|
||||
code, out, err = Executor.exec_cmd(['git', 'rev-parse', '--short', 'HEAD'])
|
||||
code, out, err = Executor.exec_cmd(['git', 'rev-parse', 'HEAD'])
|
||||
if code != 0:
|
||||
raise ExecutorError('[dvc-git] Commit command error - {}'.format(err))
|
||||
Logger.debug('[dvc-git] Getting current git commit. Success.')
|
||||
|
||||
Reference in New Issue
Block a user