Skip to content

Commit

Permalink
Merge pull request capistrano#1020 from robbertkl/freebsd-tar-fix
Browse files Browse the repository at this point in the history
Fix compatibility with FreeBSD tar
  • Loading branch information
leehambley committed Apr 23, 2014
2 parents 8c55997 + a0db741 commit f3c4eab
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion lib/capistrano/git.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def update
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
Expand Down
2 changes: 1 addition & 1 deletion spec/lib/capistrano/git_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f3c4eab

Please sign in to comment.