Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5e86432

Browse files
authored
fix: unset default basic auth header if set
relates to #21
1 parent bda9932 commit 5e86432

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

github-sync.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ fi
2323
echo "UPSTREAM_REPO=$UPSTREAM_REPO"
2424
echo "BRANCHES=$BRANCH_MAPPING"
2525

26-
git config --unset-all http."https://github.com/".extraheader
26+
git config --unset-all http."https://github.com/".extraheader || :
2727
git remote set-url origin "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$GITHUB_REPOSITORY"
2828
git remote add tmp_upstream "$UPSTREAM_REPO"
2929
git fetch tmp_upstream

0 commit comments

Comments
 (0)