diff options
author | Elvin Efendi <elvin.efendiev@shopify.com> | 2015-12-04 00:13:35 -0500 |
---|---|---|
committer | Elvin Efendi <elvin.efendiev@shopify.com> | 2015-12-04 00:13:35 -0500 |
commit | bb1d59b78fd197c992e2a59dd3b56b0ffe0d3320 (patch) | |
tree | 9ed1d5389d79312c88ef0477657d6484e24bb084 | |
parent | 84697f6440d156e264962cf74b61c8ef90ed187c (diff) |
user password username for github api
-rw-r--r-- | lib/oxidized/hook/githubrepo.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/oxidized/hook/githubrepo.rb b/lib/oxidized/hook/githubrepo.rb index 85adaab..fe73015 100644 --- a/lib/oxidized/hook/githubrepo.rb +++ b/lib/oxidized/hook/githubrepo.rb @@ -4,7 +4,7 @@ class GithubRepo < Oxidized::Hook end def run_hook(ctx) - credentials = Rugged::Credentials::SshKeyFromAgent.new(username: 'git') + credentials = Rugged::Credentials::UserPassword.new(username: cfg.username, password: cfg.password) 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) |