]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Add re-synchronization of `gh-pages` branch in 'docs-prep.sh'
authorJulien Déramond <juderamond@gmail.com>
Tue, 6 May 2025 14:58:08 +0000 (16:58 +0200)
committerJulien Déramond <juderamond@gmail.com>
Tue, 6 May 2025 14:58:08 +0000 (16:58 +0200)
build/docs-prep.sh

index 2586ad3437e1447abe1041adbbe4488aa2ebdb63..b0054257e7b15fa203d214b80af5f8f16e034bc6 100755 (executable)
@@ -76,6 +76,18 @@ if [ $? -ne 0 ]; then
 fi
 print_success "Switched to gh-pages branch"
 
+git reset --hard origin/gh-pages
+if [ $? -ne 0 ]; then
+  print_error "Failed to reset to origin/gh-pages. Check your git configuration."
+fi
+print_success "Reset to origin/gh-pages"
+
+git pull origin gh-pages
+if [ $? -ne 0 ]; then
+  print_error "Failed to pull from origin/gh-pages. Check your network connection and git configuration."
+fi
+print_success "Pulled latest changes from origin/gh-pages"
+
 # Step 4: Create a new branch for the update
 print_info "Creating new branch ${NEW_BRANCH}…"
 execute "git checkout -b ${NEW_BRANCH}"