Skip to content

Commit

Permalink
fix: unset default basic auth header if set
Browse files Browse the repository at this point in the history
relates to #21
  • Loading branch information
wei authored Aug 25, 2020
1 parent bda9932 commit 5e86432
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion github-sync.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5e86432

Please sign in to comment.