Skip to content

Commit 0342940

Browse files
committed
release-version.sh: change git:// to https://
GitHub no longer supports the unencrypted git protocol. See: https://github.blog/2021-09-01-improving-git-protocol-security-github/
1 parent 0311fb4 commit 0342940

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

release-version.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ If you are sure, try again with --skip-version-check flag."
154154
VALID_SEMVER_BUMP="$(cd "$(dirname "$0")" && pwd)/valid-semver-bump.sh"
155155
test -f "$VALID_SEMVER_BUMP" ||
156156
die "Missing helper script at '$VALID_SEMVER_BUMP'
157-
Do you have a full clone of git://github.com/scijava/scijava-scripts?"
157+
Do you have a full clone of https://github.com/scijava/scijava-scripts?"
158158
test "$SKIP_VERSION_CHECK" || {
159159
sh -$- "$VALID_SEMVER_BUMP" "$pomVersion" "$VERSION" ||
160160
die "If you are sure, try again with --skip-version-check flag."
@@ -164,7 +164,7 @@ test "$SKIP_VERSION_CHECK" || {
164164
MAVEN_HELPER="$(cd "$(dirname "$0")" && pwd)/maven-helper.sh"
165165
test -f "$MAVEN_HELPER" ||
166166
die "Missing helper script at '$MAVEN_HELPER'
167-
Do you have a full clone of git://github.com/scijava/scijava-scripts?"
167+
Do you have a full clone of https://github.com/scijava/scijava-scripts?"
168168
test "$SKIP_VERSION_CHECK" -o "$parentGAV" != "${parentGAV#$}" || {
169169
latestParentVersion=$(sh -$- "$MAVEN_HELPER" latest-version "$parentGAV")
170170
currentParentVersion=${parentGAV##*:}
@@ -252,9 +252,9 @@ test -n "$tag" &&
252252
# The release:perform command wants to use the developerConnection URL when
253253
# checking out the release tag. But reading from this URL requires credentials
254254
# which we would rather Travis not need. So we replace the scm.url in the
255-
# release.properties file to use the read-only (git://github.com/...) URL.
255+
# release.properties file to use the public (https://github.com/...) URL.
256256
# This is OK, since release:perform does not need write access to the repo.
257-
$DRY_RUN sed -i.bak -e 's|^scm.url=scm\\:git\\:git@github.com\\:|scm.url=scm\\:git\\:git\\://github.com/|' release.properties &&
257+
$DRY_RUN sed -i.bak -e 's|^scm.url=scm\\:git\\:git@github.com\\:|scm.url=scm\\:git\\:https\\://github.com/|' release.properties &&
258258
$DRY_RUN rm release.properties.bak &&
259259
$DRY_RUN git checkout "$tag" &&
260260
$DRY_RUN git add -f release.properties &&

0 commit comments

Comments
 (0)