Skip to content

Commit 961b177

Browse files
Fix: UnboundLocalError: local variable 'version_type' referenced before assignment (#15)
Co-authored-by: Yuki Furuta <[email protected]>
1 parent 3242959 commit 961b177

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
@@ -739,6 +739,8 @@ def validate(self, command):
739739
else:
740740
for _hash in hashes:
741741
if _hash.startswith(command.version):
742+
version_type = 'hash'
743+
version_name = command.version
742744
break
743745
else:
744746
cmd = result_ls_remote['cmd']

0 commit comments

Comments
 (0)