diff --git a/lib/teracy-dev/extension/manager.rb b/lib/teracy-dev/extension/manager.rb index 77884c31..50bb8457 100644 --- a/lib/teracy-dev/extension/manager.rb +++ b/lib/teracy-dev/extension/manager.rb @@ -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