diff --git a/bin/git-bug b/bin/git-bug index 3738654..662c660 100755 --- a/bin/git-bug +++ b/bin/git-bug @@ -11,4 +11,5 @@ else fi branch=bug/$1 git checkout -b $branch &> /dev/null + test -n $? && git checkout $branch &> /dev/null fi diff --git a/bin/git-feature b/bin/git-feature index 4a1eed0..d44eec5 100755 --- a/bin/git-feature +++ b/bin/git-feature @@ -11,4 +11,5 @@ else fi branch=feature/$1 git checkout -b $branch &> /dev/null + test -n $? && git checkout $branch &> /dev/null fi diff --git a/bin/git-refactor b/bin/git-refactor index 1130956..a19afbd 100755 --- a/bin/git-refactor +++ b/bin/git-refactor @@ -12,4 +12,5 @@ else fi branch=refactor/$1 git checkout -b $branch &> /dev/null + test -n $? && git checkout $branch &> /dev/null fi