Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
preserve mtime of local clone
[gitweb.git]
/
builtin-clone.c
diff --git
a/builtin-clone.c
b/builtin-clone.c
index ad048085f3587a40eccede3e86dd526f2b446f89..bab2d84ea1158b52af5d91b529b280be8c937f8d 100644
(file)
--- a/
builtin-clone.c
+++ b/
builtin-clone.c
@@
-269,7
+269,7
@@
static void copy_or_link_directory(struct strbuf *src, struct strbuf *dest)
die_errno("failed to create link '%s'", dest->buf);
option_no_hardlinks = 1;
}
- if (copy_file(dest->buf, src->buf, 0666))
+ if (copy_file
_with_time
(dest->buf, src->buf, 0666))
die_errno("failed to copy file to '%s'", dest->buf);
}
closedir(dir);