corriger la sélection par défaut
This commit is contained in:
parent
5084eb747a
commit
76681f423e
9
pdev
9
pdev
|
@ -76,8 +76,9 @@ if [ "$action" == branch ]; then
|
|||
feature=develop
|
||||
else
|
||||
array_ins branches develop
|
||||
array_contains branches "$branch" || branch=develop
|
||||
simple_menu feature branches -d "$branch" \
|
||||
default_branch="$branch"
|
||||
array_contains branches "$default_branch" || default_branch=develop
|
||||
simple_menu feature branches -d "$default_branch" \
|
||||
-t "Basculer vers une feature branch" \
|
||||
-m "Veuillez choisir la branche vers laquelle basculer"
|
||||
fi
|
||||
|
@ -124,7 +125,9 @@ if [ "$action" == merge ]; then
|
|||
feature="${branches[0]}"
|
||||
estepn "Autosélection de $feature"
|
||||
else
|
||||
simple_menu feature branches -d "$branch" \
|
||||
default_feature="$branch"
|
||||
array_contains branches "$default_feature" || default_feature="${branches[0]}"
|
||||
simple_menu feature branches -d "$default_feature" \
|
||||
-t "Choix de la feature branch" \
|
||||
-m "Veuillez choisir la branche"
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue