Skip to content

Commit

Permalink
git-deploy: fix compilation error in f348aa2
Browse files Browse the repository at this point in the history
The f348aa2 commit didn't compile because we weren't passing
$remote_site around.

Maybe we should just move the do_interactive_revert function around to
avoid this:

    bin/git-deploy:161:sub do_interactive_revert {
    bin/git-deploy:768:                do_interactive_revert( $remote_site, $list_count, $prefix, $action, $ignore_older_than, $include_branches,
  • Loading branch information
avarbkng committed Feb 5, 2013
1 parent 9a84cf6 commit 71857af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/git-deploy
Expand Up @@ -159,7 +159,7 @@ sub do_get_name_list {
}

sub do_interactive_revert {
my ( $list_count, $prefix, $action, $ignore_older_than, $include_branches, $deploy_file_name, $message, $rsubject, $rmessage, $revert_choice, $date_fmt )=
my ( $remote_site, $list_count, $prefix, $action, $ignore_older_than, $include_branches, $deploy_file_name, $message, $rsubject, $rmessage, $revert_choice, $date_fmt )=
@_;
my $tags= do_get_name_list( $ignore_older_than, 1, 1, $include_branches );
_print colored( ['bold cyan'], "The following commits are available to revert the site to:" ), "\n";
Expand Down Expand Up @@ -765,7 +765,7 @@ while (@actions) {
log_message => "Starting revert of '$prefix' from $start_tag"
);
push @actions,
do_interactive_revert( $list_count, $prefix, $action, $ignore_older_than, $include_branches,
do_interactive_revert( $remote_site, $list_count, $prefix, $action, $ignore_older_than, $include_branches,
$deploy_file_name, \@message, \$subject, \$body, $revert_choice, $date_fmt );
$first_line= "\nRevert procedure has started. You should now be checked out to the chosen commit.\n";
}
Expand Down

0 comments on commit 71857af

Please sign in to comment.