lib/hub/context.rb
# Either returns the GitHub user as set by git-config(1) or aborts
# with an error message.
Either returns the GitHub user as set by git-config(1) or aborts
with an error message.
Either returns the GitHub user as set by git - config ( 1 ) or aborts with an error message .
def github_user(fatal = true)
      if user = ENV['GITHUB_USER'] || GIT_CONFIG['config github.user']
        user
      elsif fatal
        abort("** No GitHub user set. See #{LGHCONF}")
      end
    end
def github_user ( fatal = true ) if user = ENV [ 'GITHUB_USER' ] || GIT_CONFIG [ 'config github.user' ] user elsif fatal abort ( "** No GitHub user set. See #{LGHCONF}" ) end end
Either returns the GitHub user as set by git-config(1) or aborts
with an error message.
Either returns the GitHub user as set by git - config ( 1 ) or aborts with an error message .
fatal