From d37158b82ba257b9de76a80d00bbc8e90c2b4577 Mon Sep 17 00:00:00 2001 From: Joe Block Date: Sat, 16 Apr 2016 13:08:11 -0700 Subject: [PATCH] Use require_relative --- bin/git-bb-create-pull-request | 8 +------- bin/git-bb-list-pull-requests | 8 +------- bin/git-bb-open | 8 +------- 3 files changed, 3 insertions(+), 21 deletions(-) diff --git a/bin/git-bb-create-pull-request b/bin/git-bb-create-pull-request index a4c07f5..8ab3990 100755 --- a/bin/git-bb-create-pull-request +++ b/bin/git-bb-create-pull-request @@ -6,14 +6,8 @@ # # License: Apache 2.0 -def push_loadpath - $: << File.expand_path(File.dirname(caller.first)) -end - -push_loadpath - require 'pathname' -require 'bbhelpers' +require_relative 'bbhelpers' def construct_PR_URL remote = git_remote() diff --git a/bin/git-bb-list-pull-requests b/bin/git-bb-list-pull-requests index dbf037a..eed45f9 100755 --- a/bin/git-bb-list-pull-requests +++ b/bin/git-bb-list-pull-requests @@ -6,14 +6,8 @@ # # License: Apache 2.0 -def push_loadpath - $: << File.expand_path(File.dirname(caller.first)) -end - -push_loadpath - require 'pathname' -require 'bbhelpers' +require_relative 'bbhelpers' def construct_PR_list_URL remote = git_remote() diff --git a/bin/git-bb-open b/bin/git-bb-open index 962a51b..7ade957 100755 --- a/bin/git-bb-open +++ b/bin/git-bb-open @@ -6,14 +6,8 @@ # # License: Apache 2.0, see LICENSE in this repository. -def push_loadpath - $: << File.expand_path(File.dirname(caller.first)) -end - -push_loadpath - require 'pathname' -require 'bbhelpers' +require_relative 'bbhelpers' def constructURL remote = git_remote()