Skip to content

Commit b0e027b

Browse files
furushchevhoffmann-stefan
authored andcommitted
Fix: UnboundLocalError: local variable 'version_type' referenced before assignment
1 parent 0c657e5 commit b0e027b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

vcs2l/clients/git.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -725,6 +725,8 @@ def validate(self, command):
725725
else:
726726
for _hash in hashes:
727727
if _hash.startswith(command.version):
728+
version_type = 'hash'
729+
version_name = command.version
728730
break
729731
else:
730732
cmd = result_ls_remote['cmd']

0 commit comments

Comments
 (0)