Skip to content

Commit

Permalink
fix(scripts): correct main branch checkout command in tag.sh
Browse files Browse the repository at this point in the history
- Update git checkout command to use 'origin/main' instead of 'original/main'
- This fix ensures proper branch handling when tagging and merging changes
  • Loading branch information
godcong committed Nov 15, 2024
1 parent 1b5e13e commit 6815599
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/tag.sh
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ add_go_mod_tag() {
# Save all local changes to the Git stash
echo "Saving all local changes and change to the main branch..."
git stash save --include-untracked
git checkout -B "main" "original/main"
git checkout -B "main" "origin/main"

# If a module_name is specified, process only that directory
if [ "$module_name" == "." ]; then
Expand Down

0 comments on commit 6815599

Please sign in to comment.