Skip to content

Commit

Permalink
@ teracyhq#277 | improve extension downloading
Browse files Browse the repository at this point in the history
  • Loading branch information
hoatle committed Aug 12, 2018
1 parent 4022471 commit b1dfe48
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions lib/teracy-dev/extension/manager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,13 @@ def sync(extension)
@logger.error("git is not avaiable")
end
Dir.chdir(lookup_path) do
@logger.info("cd #{lookup_path} && git clone #{git} -b #{branch}")
system("git clone #{git} -b #{branch}")
@logger.info("cd #{lookup_path} && git clone #{git}")
system("git clone #{git}")
end

Dir.chdir(path) do
@logger.info("cd #{path} && git checkout #{branch}")
system("git checkout #{branch}")
end
end
end
Expand Down

0 comments on commit b1dfe48

Please sign in to comment.