mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-02 07:18:25 +01:00
fetch: use md5() before save()
This commit is contained in:
+2
-1
@@ -15,7 +15,7 @@ logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
def _fetch_worktree(repo, remote):
|
||||
from dvc_data.index import save
|
||||
from dvc_data.index import md5, save
|
||||
|
||||
index = repo.index.data["repo"]
|
||||
for key, entry in index.iteritems():
|
||||
@@ -24,6 +24,7 @@ def _fetch_worktree(repo, remote):
|
||||
remote.path,
|
||||
*key,
|
||||
)
|
||||
md5(index)
|
||||
save(index)
|
||||
|
||||
for stage in repo.index.stages:
|
||||
|
||||
Reference in New Issue
Block a user