Skip to content

Commit

Permalink
2.11.22 Complete style updates
Browse files Browse the repository at this point in the history
  • Loading branch information
webpwnized committed Oct 15, 2024
1 parent 2a66ed1 commit 4e73d79
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .tools/push-feature-branch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,14 @@ if [[ ! -x "$GIT_SCRIPT" ]]; then
handle_error "'git.sh' script not found or not executable"
fi

# Check if the feature branch exists
if ! git show-ref --verify --quiet refs/heads/"$FEATURE_BRANCH"; then
handle_error "Feature branch '$FEATURE_BRANCH' does not exist. Create it using:
git checkout -b $FEATURE_BRANCH
git push -u origin $FEATURE_BRANCH"
fi

# Push feature branch
print_message "Checking out feature branch: $FEATURE_BRANCH"
git checkout "$FEATURE_BRANCH" || handle_error "Failed to checkout feature branch: $FEATURE_BRANCH"
Expand All @@ -63,4 +71,5 @@ print_message "Pushing feature branch: $FEATURE_BRANCH"
print_message "Git status"
git status || handle_error "Failed to show git status"

print_message "Script completed successfully"
print_message "Script completed successfully"
exit 0

0 comments on commit 4e73d79

Please sign in to comment.