Skip to content

Commit 0886833

Browse files
committed
Bugfix: fetching hashtable before defining get_sha1() method
1 parent 7f565fa commit 0886833

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

mpbridge/serial_transport.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,11 +130,11 @@ def copy_all(self, dest_dir_path):
130130

131131
def sync_with_dir(self, dir_path, dry: bool = False, push: bool = False):
132132
print(Fore.YELLOW, "- Syncing")
133+
hashtable = self._get_hash_table()
133134
self.exec_raw_no_follow(SHA1_FUNC)
134135
dir_path = utils.replace_backslashes(dir_path)
135136
rdirs, rfiles = self.fs_recursive_listdir()
136137
ldirs, lfiles = utils.recursive_list_dir(dir_path)
137-
hashtable = self._get_hash_table()
138138
ignore = IgnoreStorage(dir_path=dir_path)
139139
if (not dry) and (not push):
140140
for rdir in rdirs.keys():

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ build-backend = "setuptools.build_meta"
77

88
[project]
99
name = "mpbridge"
10-
version = "1.5.0"
10+
version = "1.5.1"
1111
description = "File System Bridge to facilitate working with files on Micropython devices"
1212
license = { file = "LICENSE" }
1313
keywords = [

0 commit comments

Comments
 (0)