lint: Set repository variable in tools/commit-message-lint.

This commit is contained in:
LoopThrough-i-j 2021-05-06 13:15:34 +05:30 committed by Tim Abbott
parent 0663094920
commit adc646adb8
1 changed files with 3 additions and 1 deletions

View File

@ -5,10 +5,12 @@
# The rules can be found in /.gitlint
repository="zulip/zulip"
if [[ "
$(git remote -v)
" =~ '
'([^[:space:]]*)[[:space:]]*(https://github\.com/|ssh://git@github\.com/|git@github\.com:)zulip/zulip(\.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