diff --git a/tools/jenkins_scripts/mac/android/generate-js-cxx-bindings.sh b/tools/jenkins_scripts/mac/android/generate-js-cxx-bindings.sh index 74f3dd7c7d..372a2c1548 100755 --- a/tools/jenkins_scripts/mac/android/generate-js-cxx-bindings.sh +++ b/tools/jenkins_scripts/mac/android/generate-js-cxx-bindings.sh @@ -108,8 +108,8 @@ fi set -e # 3. In JSBindings repo, Check out a branch named "autogeneratedbindings" and commit the auto generated bindings to it -${gitcmd_GEN} add --verbose README cocos2dx.cpp cocos2dx.hpp cocos2dxapi.js ${gitcmd_GEN} checkout origin/master -b "$GENERATED_BRANCH" +${gitcmd_GEN} add --verbose README cocos2dx.cpp cocos2dx.hpp cocos2dxapi.js ${gitcmd_GEN} commit --verbose -m "$COMMITTAG : autogenerated bindings" # 4. In JSBindings repo, Push the commit with generated bindings to "master" of the auto generated bindings repository