forked from SeleniumHQ/selenium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
27 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,19 @@ | ||
module FileCopyHack | ||
def cp_r(src, dest, opts = {}) | ||
super | ||
rescue => ex | ||
raise unless ex.message =~ /operation not permitted|Permission denied/i | ||
Dir["#{dest}/**/.svn"].each { |file| rm_rf file } | ||
module CrazyFun | ||
module Mappings | ||
module FileCopyHack | ||
def cp_r(src, dest, opts = {}) | ||
super | ||
rescue => ex | ||
raise unless ex.message =~ /operation not permitted|Permission denied/i | ||
Dir["#{dest}/**/.svn"].each { |file| rm_rf file } | ||
|
||
# virtual box shared folders has a problem with some of the .svn files | ||
if ENV['USER'] == "vagrant" && opts.empty? | ||
sh "cp", "-r", src, dest | ||
else | ||
super(src, dest, opts) | ||
# virtual box shared folders has a problem with some of the .svn files | ||
if ENV['USER'] == "vagrant" && opts.empty? | ||
sh "cp", "-r", src, dest | ||
else | ||
super(src, dest, opts) | ||
end | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters