Issue #234: Do not check utime on a copied symlink #240

Merged
merged 1 commit into from Jul 10, 2012
Jump to file or symbol
Failed to load files and symbols.
+2 −1
Split
View
@@ -125,7 +125,8 @@ def copy_metadata(source, destination)
dest_stat = File::lstat(destination)
# If this is a hard-link, there's no metadata to copy.
- return if source_stat.ino == dest_stat.ino
+ # If this is a symlink, what it points to hasn't been copied yet.
+ return if source_stat.ino == dest_stat.ino || File.symlink?(destination)
File.utime(source_stat.atime, source_stat.mtime, destination)
begin