File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ const (
4444 AppMajor uint = 0
4545
4646 // AppMinor defines the minor version of this binary.
47- AppMinor uint = 20
47+ AppMinor uint = 21
4848
4949 // AppPatch defines the application patch for this binary.
5050 AppPatch uint = 99
Original file line number Diff line number Diff line change @@ -12,7 +12,10 @@ VERSION_FILE="build/version.go"
1212
1313# Match the canonical upstream URL across https / git@ / ssh:// forms, with or
1414# without a `.git` suffix. We identify the remote by URL because `origin` is
15- # conventionally the fork in a `gh repo fork` setup.
15+ # conventionally the fork in a `gh repo fork` setup. The URL is lower-cased
16+ # before matching (see below), so this pattern stays lower-case: GitHub treats
17+ # the org/repo as case-insensitive, and `origin` is often the mixed-case
18+ # `LightningNetwork/lnd`.
1619UPSTREAM_URL_REGEX=' [:/]lightningnetwork/lnd(\.git)?$'
1720
1821usage () {
@@ -59,7 +62,7 @@ UPSTREAM_REMOTES=()
5962while IFS= read -r line; do
6063 UPSTREAM_REMOTES+=(" $line " )
6164done < <( git remote -v | awk -v re=" ${UPSTREAM_URL_REGEX} " \
62- ' $3 == "(fetch)" && $2 ~ re { print $1 }' | sort -u)
65+ ' $3 == "(fetch)" && tolower($2) ~ re { print $1 }' | sort -u)
6366
6467case " ${# UPSTREAM_REMOTES[@]} " in
6568 0) echo " Error: no git remote points at lightningnetwork/lnd. Add one with" \
You can’t perform that action at this time.
0 commit comments