feat: skip the .git directory
This commit is contained in:
parent
4b0902c648
commit
d1f83c18f3
@ -15,6 +15,11 @@ pub fn write_tree(repo_path: &PathBuf, path: &PathBuf) -> Result<[u8; 20]> {
|
|||||||
let file_name = file.file_name();
|
let file_name = file.file_name();
|
||||||
let file_path = file.path();
|
let file_path = file.path();
|
||||||
|
|
||||||
|
// Skip the .git directory
|
||||||
|
if file_name == ".git" {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
let hash: [u8; 20];
|
let hash: [u8; 20];
|
||||||
let kind;
|
let kind;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user