modifs.mineures sans commentaires
This commit is contained in:
parent
c76fc0cfb6
commit
73fcc88503
9
wip/pman
9
wip/pman
@ -33,9 +33,10 @@ function show_action() {
|
|||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
function _push_branches() {
|
function _push_branches() {
|
||||||
|
[ ${#push_branches[*]} -gt 0 ] || return
|
||||||
[ -n "$Origin" ] || Origin=origin
|
[ -n "$Origin" ] || Origin=origin
|
||||||
git_have_remote "$Origin" || retun
|
git_have_remote "$Origin" || return
|
||||||
if [ ${#push_branches[*]} -gt 0 ]; then
|
|
||||||
local -a cmds remote rbranch
|
local -a cmds remote rbranch
|
||||||
for branch in "${push_branches[@]}"; do
|
for branch in "${push_branches[@]}"; do
|
||||||
setx remote=git_get_branch_remote "$branch"
|
setx remote=git_get_branch_remote "$branch"
|
||||||
@ -60,7 +61,6 @@ function _push_branches() {
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function init_repo_action() {
|
function init_repo_action() {
|
||||||
@ -159,8 +159,9 @@ function init_dist_action() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function init_feature_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"
|
[ -n "$branch" ] || die "Vous devez définir la nom de la branche à créer"
|
||||||
|
branch="$FEATURE$branch"
|
||||||
if ! array_contains AllBranches "$branch"; then
|
if ! array_contains AllBranches "$branch"; then
|
||||||
[ -n "$DEVELOP" ] || die "La branche DEVELOP n'a pas été définie"
|
[ -n "$DEVELOP" ] || die "La branche DEVELOP n'a pas été définie"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user