Skip to content

Commit

Permalink
Merge pull request moll#16 from VincentCATILLON/improve-reset-git-sub…
Browse files Browse the repository at this point in the history
…modules-before-update

Added clean submodule directory.
  • Loading branch information
Bladrak committed Sep 7, 2015
2 parents 5ac2eed + 440e3de commit 2dd64ca
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.3.5 (Sep 7, 2015)
- Adds clean command to submodules to remove untracking files.
- Rectifies the tag deployment.

## 1.3.4 (Jul 17, 2015)
- Added ``:git_remote`` option. Gives the opportunity to define some other remote that ``origin``.

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ rsync_checkout_tag | `false` | Is the ``:branch`` symbol containing a branch or
rsync_copy | `rsync --archive --acls --xattrs` | The command used to copy from remote cache to remote release
rsync_target_dir | `.` | The local directory within ``:rsync_stage`` to clone to & deploy (useful if you want to keep cache of several branches/tags for instance)
enable_git_submodules | `false` | Should we fetch submodules as well?
reset_git_submodules_before_update | `false` | Do a reset hard on submodules (in case you do modifications on working copies)?
reset_git_submodules_before_update | `false` | Do a reset hard and clean force on submodules (in case you do modifications on working copies)?


License
Expand Down
2 changes: 1 addition & 1 deletion lib/capistrano/rsync.rb
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ def has_roles?

if fetch(:enable_git_submodules)
if fetch(:reset_git_submodules_before_update)
execute :git, :submodule, :foreach, "git reset --hard HEAD"
execute :git, :submodule, :foreach, "'git reset --hard HEAD && git clean -qfd'"
end

execute :git, :submodule, :update
Expand Down
2 changes: 1 addition & 1 deletion lib/capistrano/rsync/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module Capistrano
module Rsync
VERSION = "1.3.4"
VERSION = "1.3.5"
end
end

0 comments on commit 2dd64ca

Please sign in to comment.