mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 22:43:42 +00:00
lint: Set repository variable in tools/commit-message-lint.
This commit is contained in:
committed by
Tim Abbott
parent
0663094920
commit
adc646adb8
@@ -5,10 +5,12 @@
|
|||||||
|
|
||||||
# The rules can be found in /.gitlint
|
# The rules can be found in /.gitlint
|
||||||
|
|
||||||
|
repository="zulip/zulip"
|
||||||
|
|
||||||
if [[ "
|
if [[ "
|
||||||
$(git remote -v)
|
$(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
|
' ]]; then
|
||||||
range="${BASH_REMATCH[1]}/master..HEAD"
|
range="${BASH_REMATCH[1]}/master..HEAD"
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user