Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 86d44b7

Browse files
authored
Update release_helper.sh from git switch (#14226)
switch only works from branches not tags.
2 parents 5ef2dbb + f0d04da commit 86d44b7

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tools/release_helper.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ fi
115115
if ask_section "Generate API difference (using frapuccino)"
116116
then
117117
echo $BLUE"Checking out $PREV_RELEASE"$NOR
118-
git switch $PREV_RELEASE
118+
git checkout tags/$PREV_RELEASE
119119
sleep 1
120120
echo $BLUE"Saving API to file $PREV_RELEASE"$NOR
121121
frappuccino IPython IPython.kernel IPython.lib IPython.qt IPython.lib.kernel IPython.html IPython.frontend IPython.external --save IPython-$PREV_RELEASE.json
@@ -206,10 +206,10 @@ then
206206

207207

208208
echo
209-
echo $BLUE"let's : git switch $VERSION"$NOR
209+
echo $BLUE"let's : git checkout tags/$VERSION"$NOR
210210
echo $GREEN"Press enter to continue"$NOR
211211
read
212-
git switch $VERSION
212+
git checkout tags/$VERSION
213213
fi
214214

215215
if ask_section "Should we build and release ?"

0 commit comments

Comments
 (0)