@@ -31,7 +31,6 @@ cd "${KUBE_ROOT}"
31
31
declare -r STARTINGBRANCH=$( git symbolic-ref --short HEAD)
32
32
declare -r REBASEMAGIC=" ${KUBE_ROOT} /.git/rebase-apply"
33
33
DRY_RUN=${DRY_RUN:- " " }
34
- REGENERATE_DOCS=${REGENERATE_DOCS:- " " }
35
34
UPSTREAM_REMOTE=${UPSTREAM_REMOTE:- upstream}
36
35
FORK_REMOTE=${FORK_REMOTE:- origin}
37
36
@@ -57,9 +56,6 @@ if [[ "$#" -lt 2 ]]; then
57
56
echo " This is useful for creating patches to a release branch without making a PR."
58
57
echo " When DRY_RUN is set the script will leave you in a branch containing the commits you cherry-picked."
59
58
echo
60
- echo " Set the REGENERATE_DOCS environment var to regenerate documentation for the target branch after picking the specified commits."
61
- echo " This is useful when picking commits containing changes to API documentation."
62
- echo
63
59
echo " Set UPSTREAM_REMOTE (default: upstream) and FORK_REMOTE (default: origin)"
64
60
echo " To override the default remote names to what you have locally."
65
61
exit 2
@@ -189,17 +185,6 @@ for pull in "${PULLS[@]}"; do
189
185
done
190
186
gitamcleanup=false
191
187
192
- # Re-generate docs (if needed)
193
- if [[ -n " ${REGENERATE_DOCS} " ]]; then
194
- echo
195
- echo " Regenerating docs..."
196
- if ! hack/generate-docs.sh; then
197
- echo
198
- echo " hack/generate-docs.sh FAILED to complete."
199
- exit 1
200
- fi
201
- fi
202
-
203
188
if [[ -n " ${DRY_RUN} " ]]; then
204
189
echo " !!! Skipping git push and PR creation because you set DRY_RUN."
205
190
echo " To return to the branch you were in when you invoked this script:"
0 commit comments