• Clemens Buchacher's avatar
    preserve mtime of local clone · f7835a25
    Clemens Buchacher authored
    A local clone without hardlinks copies all objects, including dangling
    ones, to the new repository. Since the mtimes are renewed, those
    dangling objects cannot be pruned by "git gc --prune", even if they
    would have been old enough for pruning in the original repository.
    Instead, preserve mtime during copy. "git gc --prune" will then work
    in the clone just like it did in the original.
    Signed-off-by: default avatarClemens Buchacher <[email protected]>
    Signed-off-by: default avatarJunio C Hamano <[email protected]>
copy.c 1.55 KB