aboutsummaryrefslogtreecommitdiffstats
path: root/code-review-database
diff options
context:
space:
mode:
Diffstat (limited to 'code-review-database')
-rw-r--r--code-review-database5
1 files changed, 5 insertions, 0 deletions
diff --git a/code-review-database b/code-review-database
index 5c931c6..a1cd739 100644
--- a/code-review-database
+++ b/code-review-database
@@ -72,6 +72,11 @@ function get_merge_base () {
local head="$(current_branch)"
local default_base='master'
+ if [ -n "$CODE_REVIEW_BASE" ]; then
+ echo "$CODE_REVIEW_BASE"
+ return 0
+ fi
+
if git config remote.origin.url > /dev/null; then
default_base='origin/master'
fi