From 470967cfdb6b83433fa3e3ce69e22a793f96c428 Mon Sep 17 00:00:00 2001 From: LoopThrough-i-j Date: Thu, 6 May 2021 20:50:35 +0530 Subject: [PATCH] lint: Set repository variable in tools/lint-commits. refer to: zulip/zulip#17506 --- tools/lint-commits | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/lint-commits b/tools/lint-commits index 3d6422a..87698b6 100755 --- a/tools/lint-commits +++ b/tools/lint-commits @@ -9,10 +9,12 @@ # The rules can be found in /.gitlint +repository="zulip/python-zulip-api" + if [[ " $(git remote -v) " =~ ' -'([^[:space:]]*)[[:space:]]*(https://github\.com/|ssh://git@github\.com/|git@github\.com:)zulip/python-zulip-api(\.git|/)?\ \(fetch\)' +'([^[:space:]]*)[[:space:]]*(https://github\.com/|ssh://git@github\.com/|git@github\.com:)"$repository"(\.git|/)?\ \(fetch\)' ' ]]; then range="${BASH_REMATCH[1]}/master..HEAD" else