diff --git a/paddle/scripts/paddle_build.sh b/paddle/scripts/paddle_build.sh index c44e8827f0dc2dd6e50b6b5d481580bd63b98e6a..88d9e6e55d577dbb5b883d1c59e2c58d54373742 100755 --- a/paddle/scripts/paddle_build.sh +++ b/paddle/scripts/paddle_build.sh @@ -617,6 +617,7 @@ function fetch_upstream_develop_if_not_exist() { function generate_upstream_develop_api_spec() { fetch_upstream_develop_if_not_exist cur_branch=`git branch | grep \* | cut -d ' ' -f2` + git checkout . git checkout -b develop_base_pr upstream/$BRANCH cmake_gen $1 build $2