Skip to content

Commit

Permalink
fix: prevent removing matching string whithin others branches
Browse files Browse the repository at this point in the history
  • Loading branch information
pmqueiroz committed Jun 26, 2024
1 parent 4696244 commit 60b7c0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .dotfilesrc
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ function checkout {

git pull --rebase --quiet

local_branchs=$(git for-each-ref --format='%(refname:short)' refs/heads/ | sed s/$branch_to_checkout// )
local_branchs=$(git for-each-ref --format='%(refname:short)' refs/heads/ | sed /^$branch_to_checkout\$/d)

if test -n "$local_branchs"; then
gum_log info 'deleting other branches. was:'
Expand Down

0 comments on commit 60b7c0a

Please sign in to comment.