Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
J
jekyll-hardlinks
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sutty
jekyll
jekyll-hardlinks
Commits
598b29ce
Commit
598b29ce
authored
2 years ago
by
fauno
Browse files
Options
Downloads
Patches
Plain Diff
fallback to copy if files are in different devices
closes
#1
parent
5b2f16f0
Branches
replace-wrangler-generate
No related tags found
1 merge request
!1
fallback to copy if files are in different devices
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/jekyll/static_file.rb
+6
-1
6 additions, 1 deletion
lib/jekyll/static_file.rb
with
6 additions
and
1 deletion
lib/jekyll/static_file.rb
+
6
−
1
View file @
598b29ce
...
...
@@ -18,7 +18,12 @@ module Jekyll
self
.
class
.
mtimes
[
path
]
=
mtime
FileUtils
.
mkdir_p
(
File
.
dirname
(
dest_path
))
FileUtils
.
ln
(
path
,
dest_path
)
begin
FileUtils
.
ln
(
path
,
dest_path
)
rescue
Errno
::
EXDEV
copy_file
(
dest_path
)
end
end
private
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment