diff --git a/vcstool/clients/git.py b/vcstool/clients/git.py index ae1ae8bb..85099ccd 100644 --- a/vcstool/clients/git.py +++ b/vcstool/clients/git.py @@ -725,6 +725,8 @@ def validate(self, command): else: for _hash in hashes: if _hash.startswith(command.version): + version_type = 'hash' + version_name = command.version break else: cmd = result_ls_remote['cmd']