Skip to content

Issue when change the directory before git:clone #477

Description

@sobrinho

Hi! Here mina tries to clone the branch to the current directory but if we do something like this:

task :something do
  in_path(fetch(:some_path)) do
    command 'touch something'
  end
end

task :deploy do
  deploy do
    invoke :something
    invoke :'git:clone'
  end
end

I'm not sure if the issue is on in_path which do not restores the previous path or with git:clone which tries to use . instead of the fullpath.

Which one should be fixed?

I believe that the best choice would be in_path restores the previous path after the block is invoked.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions