modifs.mineures sans commentaires

This commit is contained in:
Jephté Clain 2025-02-26 11:46:25 +04:00
parent c76fc0cfb6
commit 73fcc88503

View File

@ -33,9 +33,10 @@ function show_action() {
################################################################################
function _push_branches() {
[ ${#push_branches[*]} -gt 0 ] || return
[ -n "$Origin" ] || Origin=origin
git_have_remote "$Origin" || retun
if [ ${#push_branches[*]} -gt 0 ]; then
git_have_remote "$Origin" || return
local -a cmds remote rbranch
for branch in "${push_branches[@]}"; do
setx remote=git_get_branch_remote "$branch"
@ -60,7 +61,6 @@ function _push_branches() {
fi
fi
done
fi
}
function init_repo_action() {
@ -159,8 +159,9 @@ function init_dist_action() {
}
function init_feature_action() {
local branch="$FEATURE${1#$FEATURE}"
local branch="${1#$FEATURE}"
[ -n "$branch" ] || die "Vous devez définir la nom de la branche à créer"
branch="$FEATURE$branch"
if ! array_contains AllBranches "$branch"; then
[ -n "$DEVELOP" ] || die "La branche DEVELOP n'a pas été définie"