diff --git a/upload.sh b/upload.sh index 96ca130c..38418010 100755 --- a/upload.sh +++ b/upload.sh @@ -3,4 +3,4 @@ git remote set-url origin "https://${GITHUB_USERNAME}:${GITHUB_PASSWORD}@github.com/gaoyifan/china-operator-ip.git" git add result git commit -m "update `date +%Y-%m-%d`" -git push origin ${TRAVIS_BRANCH} +git push origin $(git rev-parse HEAD):${TRAVIS_BRANCH}