From 5e864327cffda5b18a5301b851a4169c69aa48df Mon Sep 17 00:00:00 2001 From: Wei He Date: Tue, 25 Aug 2020 07:30:25 -0400 Subject: [PATCH] fix: unset default basic auth header if set relates to #21 --- github-sync.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/github-sync.sh b/github-sync.sh index 57b448c3f..5ddbe99da 100755 --- a/github-sync.sh +++ b/github-sync.sh @@ -23,7 +23,7 @@ fi echo "UPSTREAM_REPO=$UPSTREAM_REPO" echo "BRANCHES=$BRANCH_MAPPING" -git config --unset-all http."https://github.com/".extraheader +git config --unset-all http."https://github.com/".extraheader || : git remote set-url origin "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$GITHUB_REPOSITORY" git remote add tmp_upstream "$UPSTREAM_REPO" git fetch tmp_upstream