Skip to content

Commit

Permalink
fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
r-dent committed Jan 31, 2024
1 parent 22e0708 commit 7333eaf
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions build-documentation.sh
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,8 @@ trap cleanup EXIT
# Add remote to sync with.
git_remote_url="https://$github_username:$github_api_token@github.com/$github_repository/"
git remote add $git_remote $git_remote_url

# Pull from remote when matching branch exists.
branches_found=$(git ls-remote --heads $git_remote refs/heads/$initial_branch)
if [ -n "$branches_found" ]; then
echo "⬇️ Pulling from ${github_repository}..."
git pull $git_remote $initial_branch
fi
echo "⬇️ Fetching $git_remote($git_remote_url)..."
git fetch $git_remote

build_documentation

Expand Down

0 comments on commit 7333eaf

Please sign in to comment.