mirror of https://github.com/zulip/zulip.git
lint: Set repository variable in tools/commit-message-lint.
This commit is contained in:
parent
0663094920
commit
adc646adb8
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue