From e5b8536b86ecb8037fac046ab910c415ffb68ac5 Mon Sep 17 00:00:00 2001 From: Ruslan Kuprieiev Date: Sun, 24 Sep 2017 01:17:50 +0300 Subject: [PATCH] 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 --- dvc/git_wrapper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dvc/git_wrapper.py b/dvc/git_wrapper.py index 8ffe20425..abb077ef8 100644 --- a/dvc/git_wrapper.py +++ b/dvc/git_wrapper.py @@ -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.')