We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b5fda2 commit 7a88dc4Copy full SHA for 7a88dc4
tools/lint-commits
@@ -9,11 +9,9 @@
9
10
# The rules can be found in /.gitlint
11
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
+remote_url='([^[:space:]]*)[[:space:]]*(https://github\.com/|ssh://git@github\.com/|git@github\.com:)zulip/python-zulip-api(\.git|/)?\ \(fetch\)'
+
+if [[ "$(git remote -v)" =~ $remote_url ]]; then
17
range="${BASH_REMATCH[1]}/master..HEAD"
18
else
19
range="upstream/master..HEAD"
0 commit comments