diff --git a/pdev b/pdev index e0239c7..fb0561b 100755 --- a/pdev +++ b/pdev @@ -141,6 +141,8 @@ if [ "$action" == branch ]; then r=0 if git_have_branch "$feature"; then git checkout "$feature" || r=$? + elif git_have_rbranch "$feature" "$origin"; then + git checkout "$feature" || r=$? else estepn "\ Vous allez créer la nouvelle feature branch ${COULEUR_VERTE}$feature${COULEUR_NORMALE} diff --git a/prel b/prel index 0a598dd..7ca7073 100755 --- a/prel +++ b/prel @@ -261,6 +261,8 @@ if [ "$action" == checkout ]; then r=0 if git_have_branch "$release"; then git checkout "$release"; r=$? + elif git_have_rbranch "$release"; then + git checkout "$release"; r=$? else estepn "\ Vous allez créer la nouvelle branche de release ${COULEUR_VERTE}$release${COULEUR_NORMALE}