Skip to content

Commit aacec2d

Browse files
committed
release-version.sh: add hints if remote is wrong
1 parent 483b2cf commit aacec2d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

release-version.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,10 @@ parentGAV=${projectDetails#*:}
117117
if [ ! "$SKIP_PUSH" ]
118118
then
119119
push=$(git remote -v | grep origin | grep '(push)')
120-
test "$push" || die 'No push URL found for remote origin'
121-
echo "$push" | grep -q 'git:/' && die 'Remote origin is read-only'
120+
test "$push" || die 'No push URL found for remote origin.
121+
Please use "git remote -v" to double check your remote settings.'
122+
echo "$push" | grep -q 'git:/' && die 'Remote origin is read-only.
123+
Please use "git remote set-url origin ..." to change it.'
122124
fi
123125

124126
# Discern the version to release.

0 commit comments

Comments
 (0)