Skip to content

Skip git run on target and fill revision correctly#17

Closed
agavrik wants to merge 4 commits into
moll:masterfrom
agavrik:master
Closed

Skip git run on target and fill revision correctly#17
agavrik wants to merge 4 commits into
moll:masterfrom
agavrik:master

Conversation

@agavrik
Copy link
Copy Markdown

@agavrik agavrik commented Jul 9, 2014

Issue description: capistrano 3 tries to run git on target for git:check and git:create_release (which fails since there may be no access to local repo from target system). Also revision version is not passed to target system.
Root cause: Without Rake::Task.clear new task definition is not replacing, but appending new functionality.
Solution: Added clear of git:check, git:create_release and git:set_revision. Fill current_revision capistrano variable after cloning locally

agavrik added 4 commits July 3, 2014 16:58
target and fill current_revision locally just after checkout
target and fill current_revision locally just after checkout
@ivalentinee
Copy link
Copy Markdown

+1

1 similar comment
@havramar
Copy link
Copy Markdown

havramar commented Oct 8, 2014

+1

@agavrik
Copy link
Copy Markdown
Author

agavrik commented Oct 9, 2014

In fact, I think that was the wrong way of doing it (at least if you only need git). You just need to set :scm to :rsync in deploy.rb. And take some other fixes in pull-requests around. So I based on https://github.com/STRML/capistrano-rsync and added support for passing server port to rsync and updated README into https://github.com/agavrik/capistrano-rsync. It is pull-requested to STRML as well.

@agavrik agavrik closed this Oct 9, 2014
@agavrik
Copy link
Copy Markdown
Author

agavrik commented Oct 9, 2014

So I just closed this pull request as now this PR has my changes as well - #13

ezekg pushed a commit to ezekg/capistrano-rsync that referenced this pull request Jan 4, 2016
Don't return nil if revision is already clean
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants