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.
Hi! Here mina tries to clone the branch to the current directory but if we do something like this:
I'm not sure if the issue is on
in_path
which do not restores the previous path or withgit: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.