From 6673e42eff52992ba959f83cb9c5e4770b41216a Mon Sep 17 00:00:00 2001 From: Yifan Gao Date: Tue, 24 Jan 2017 02:50:53 +0600 Subject: [PATCH] upload.sh: fix push failed --- upload.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}