From 5b0715efe4ed80796b0dce3926b0ebd90bb494a1 Mon Sep 17 00:00:00 2001 From: Jephte CLAIN Date: Wed, 1 Apr 2015 08:30:28 +0400 Subject: [PATCH] =?UTF-8?q?v=C3=A9rifier=20la=20pr=C3=A9sence=20dans=20le?= =?UTF-8?q?=20d=C3=A9p=C3=B4t=20distant?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pdev | 2 ++ prel | 2 ++ 2 files changed, 4 insertions(+) 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}