summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorElvin Efendi <elvin.efendiev@shopify.com>2015-11-13 16:31:02 -0500
committerElvin Efendi <elvin.efendiev@shopify.com>2015-11-13 16:31:02 -0500
commit817f33a2a1e8f78720f5e73a10ee45384e886ae9 (patch)
tree669ff5b2daed2951db23d5fb5079f7dc6d6039f2 /lib
parentbd7d0b1660be8bd4a32828ea5ca83c16c1797045 (diff)
githubrepo hook spec
Diffstat (limited to 'lib')
-rw-r--r--lib/oxidized/hook/githubrepo.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/oxidized/hook/githubrepo.rb b/lib/oxidized/hook/githubrepo.rb
index a17d6b9..85adaab 100644
--- a/lib/oxidized/hook/githubrepo.rb
+++ b/lib/oxidized/hook/githubrepo.rb
@@ -5,7 +5,7 @@ class GithubRepo < Oxidized::Hook
def run_hook(ctx)
credentials = Rugged::Credentials::SshKeyFromAgent.new(username: 'git')
- repo = Rugged::Repository.new(Oxidized::CFG.output.git.repo)
+ repo = Rugged::Repository.new(Oxidized.config.output.git.repo)
log "Pushing local repository(#{repo.path})..."
remote = repo.remotes['origin'] || repo.remotes.create('origin', cfg.remote_repo)
log "to remote: #{remote.url}"