Write-tree hash files
This commit is contained in:
@@ -10,8 +10,8 @@ def write_tree(directory="."):
|
|||||||
if is_ignored(full):
|
if is_ignored(full):
|
||||||
continue
|
continue
|
||||||
if entry.is_file(follow_symlinks=False):
|
if entry.is_file(follow_symlinks=False):
|
||||||
# TODO write the file to object store
|
with open(full, "rb") as f:
|
||||||
print(full)
|
print(data.hash_object(f.read()), full)
|
||||||
elif entry.is_dir(follow_symlinks=False):
|
elif entry.is_dir(follow_symlinks=False):
|
||||||
write_tree(full)
|
write_tree(full)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user