1
0
Fork 0
mirror of https://github.com/capistrano/capistrano synced 2023-03-27 23:21:18 -04:00

Merge pull request #1020 from robbertkl/freebsd-tar-fix

Fix compatibility with FreeBSD tar
This commit is contained in:
Lee Hambley 2014-04-23 14:12:37 +02:00
commit f3c4eabb04
3 changed files with 5 additions and 2 deletions

View file

@ -6,6 +6,9 @@ Reverse Chronological Order:
https://github.com/capistrano/capistrano/compare/v3.2.1...HEAD
* Bug Fixes:
* Fixed compatibility with FreeBSD tar (@robbertkl)
* Minor Changes
* Added tests for after/before hooks features (@juanibiapina, @miry)

View file

@ -30,7 +30,7 @@ class Capistrano::Git < Capistrano::SCM
end
def release
git :archive, fetch(:branch), '| tar -x -C', release_path
git :archive, fetch(:branch), '| tar -x -f - -C', release_path
end
def fetch_revision

View file

@ -61,7 +61,7 @@ module Capistrano
context.expects(:fetch).returns(:branch)
context.expects(:release_path).returns(:path)
context.expects(:execute).with(:git, :archive, :branch, '| tar -x -C', :path)
context.expects(:execute).with(:git, :archive, :branch, '| tar -x -f - -C', :path)
subject.release
end