Skip to content

Commit

Permalink
Fix default branch check in full-upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
felipecrs committed Apr 29, 2024
1 parent a03863a commit fbd2497
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion home/dot_local/bin/executable_full-upgrade.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ if [[ "${CONTINUE_FROM_DOTFILES:-false}" == false ]]; then
log_manual_action "Skipping chezmoi update as uncommitted changes were found"
elif
# shellcheck disable=SC2312
[[ "origin/$(chezmoi git -- rev-parse --abbrev-ref HEAD)" != "$(git rev-parse --abbrev-ref origin/HEAD)" ]]
[[ "origin/$(chezmoi git -- rev-parse --abbrev-ref HEAD)" != "$(chezmoi git -- rev-parse --abbrev-ref origin/HEAD)" ]]
then
log_manual_action "Skipping chezmoi update as the current branch is not the default branch"
elif chezmoi git -- log '@{u}..' | grep -q .; then
Expand Down

0 comments on commit fbd2497

Please sign in to comment.