lib/buildr/core/build.rb
def remote(branch = current_branch)
      remote = git('config', '--get', "branch.#{branch}.remote").strip
      remote if git('remote').include?(remote)
    rescue
      nil
    end
# Return the name of the remote repository whose branch the current local branch tracks,
# or nil if none.
Return the name of the remote repository whose branch the current local branch tracks,
or nil if none.
Return the name of the remote repository whose branch the current local branch tracks or nil if none .
def remote(branch = current_branch)
      remote = git('config', '--get', "branch.#{branch}.remote").strip
      remote if git('remote').include?(remote)
    rescue
      nil
    end
def remote ( branch = current_branch ) remote = git ( 'config' , '--get' , "branch.#{branch}.remote" ) . strip remote if git ( 'remote' ) . include? ( remote ) rescue nil end
Return the name of the remote repository whose branch the current local branch tracks,
or nil if none.
Return the name of the remote repository whose branch the current local branch tracks or nil if none .
branch
current_branch