فهرست منبع

Make sure the path hashed by the files cache is absolute

Jonas Borgström 12 سال پیش
والد
کامیت
c3305291a2
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      darc/archive.py

+ 1 - 1
darc/archive.py

@@ -388,7 +388,7 @@ class Archive(object):
                 return
             else:
                 self.hard_links[st.st_ino, st.st_dev] = safe_path
-        path_hash = self.key.id_hash(path.encode('utf-8', 'surrogateescape'))
+        path_hash = self.key.id_hash(os.path.join(self.cwd, path).encode('utf-8', 'surrogateescape'))
         ids = cache.file_known_and_unchanged(path_hash, st)
         chunks = None
         if ids is not None: