This repository was archived by the owner on Dec 4, 2023. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -74,7 +74,11 @@ task :clean do
7474 sh "rm -rf pkg"
7575 sh "git clean -df"
7676 sh "cd #{ V8_Source } && git checkout -f && git clean -dxf"
77- sh "cd #{ GYP_Source } && git checkout -f && git clean -dxf"
77+ if Dir . chdir GYP_Source
78+ sh "git checkout -f"
79+ puts "git clean -dxf"
80+ `git clean -dxf`
81+ end
7882end
7983
8084task :devkit do
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ def checkout!
3131 # --git-dir is needed for older versions of git and git-svn
3232 `git --git-dir=../../.git/modules/vendor/gyp/ svn init #{ GYP_SVN } -Ttrunk`
3333 `git config --replace-all svn-remote.svn.fetch trunk:refs/remotes/origin/master`
34- svn_rev = `git --git-dir=../../.git/modules/vendor/gyp/ svn find-rev r#{ rev } | tail -n 1`
34+ svn_rev = `git --git-dir=../../.git/modules/vendor/gyp/ svn find-rev r#{ rev } | tail -n 1` . chomp
3535 `git checkout #{ svn_rev } -f`
3636 end
3737 end
@@ -43,7 +43,7 @@ def git?(dir)
4343 def check_git_svn!
4444 # msysgit provides git svn
4545 return if RUBY_PLATFORM =~ /mingw/
46-
46+
4747 unless system 'git help svn 2>&1 > /dev/null'
4848 fail "git-svn not installed!\n Please install git-svn."
4949 end
You can’t perform that action at this time.
0 commit comments