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:
Ruslan Kuprieiev
2017-09-24 16:55:18 +03:00
parent 3ec49f56ef
commit e5b8536b86
+1 -1
View File
@@ -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.')