Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4b4949f + 4b018c2 commit 9bf2e45Copy full SHA for 9bf2e45
src/lib.rs
@@ -331,6 +331,13 @@ fn cp_r(src: &Path, dst: &Path) {
331
let f = f.unwrap();
332
let path = f.path();
333
let name = path.file_name().unwrap();
334
+
335
+ // Skip git metadata as it's been known to cause issues (#26) and
336
+ // otherwise shouldn't be required
337
+ if name.to_str() == Some(".git") {
338
+ continue
339
+ }
340
341
let dst = dst.join(name);
342
if f.file_type().unwrap().is_dir() {
343
fs::create_dir_all(&dst).unwrap();
0 commit comments