Improve existing git helper scripts
This commit is contained in:
@ -15,11 +15,6 @@ REPO=${INFO[2]}
|
||||
TARG=${INFO[3]}
|
||||
BRANCH=${INFO[4]}
|
||||
|
||||
if [[ $BRANCH == "(no" ]]; then
|
||||
echo "Git is busy with merge, rebase, etc."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ ! -z "$1" ]]; then { BRANCH=$1 ; git checkout $1 || exit 1; } fi
|
||||
|
||||
if [[ $BRANCH == $TARG ]]; then
|
||||
|
Reference in New Issue
Block a user