summaryrefslogtreecommitdiff
path: root/lib/oxidized/hook/githubrepo.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/oxidized/hook/githubrepo.rb')
-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 e077d5d..9701608 100644
--- a/lib/oxidized/hook/githubrepo.rb
+++ b/lib/oxidized/hook/githubrepo.rb
@@ -49,7 +49,7 @@ class GithubRepo < Oxidized::Hook
if cfg.has_key?('username')
git_user = cfg.username
else
- git_user = username_from_url ? username_from_url : 'git'
+ git_user = username_from_url || 'git'
end
if cfg.has_key?('password')