Skip to content

Commit 7a88dc4

Browse files
lint: Set remote_url variable in tools/lint-commits.
refer to: zulip/zulip#17506
1 parent 5b5fda2 commit 7a88dc4

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

tools/lint-commits

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,9 @@
99

1010
# The rules can be found in /.gitlint
1111

12-
if [[ "
13-
$(git remote -v)
14-
" =~ '
15-
'([^[:space:]]*)[[:space:]]*(https://github\.com/|ssh://git@github\.com/|git@github\.com:)zulip/python-zulip-api(\.git|/)?\ \(fetch\)'
16-
' ]]; then
12+
remote_url='([^[:space:]]*)[[:space:]]*(https://github\.com/|ssh://git@github\.com/|git@github\.com:)zulip/python-zulip-api(\.git|/)?\ \(fetch\)'
13+
14+
if [[ "$(git remote -v)" =~ $remote_url ]]; then
1715
range="${BASH_REMATCH[1]}/master..HEAD"
1816
else
1917
range="upstream/master..HEAD"

0 commit comments

Comments
 (0)