Fix: run git commands in the foreground, instead of the background.
This commit is contained in:
parent
67f781fa37
commit
2ba9a4da3c
1 changed files with 4 additions and 4 deletions
8
git-flow
8
git-flow
|
@ -65,7 +65,7 @@ main() {
|
|||
exit 1
|
||||
fi
|
||||
|
||||
if ! git rev-parse --git-dir &>/dev/null; then
|
||||
if ! git rev-parse --git-dir >/dev/null; then
|
||||
die "Not a git repository"
|
||||
fi
|
||||
|
||||
|
@ -90,7 +90,7 @@ gitflow_init() {
|
|||
echo
|
||||
echo "Summary of actions:"
|
||||
|
||||
if ! git rev-parse --git-dir &>/dev/null; then
|
||||
if ! git rev-parse --git-dir >/dev/null; then
|
||||
git init --quiet
|
||||
echo "- A new git repository at $PWD was created"
|
||||
fi
|
||||
|
@ -105,7 +105,7 @@ gitflow_init() {
|
|||
echo "- An initial commit was created at branch '$MASTER_BRANCH'"
|
||||
fi
|
||||
|
||||
if ! git rev-parse --verify $MASTER_BRANCH &>/dev/null; then
|
||||
if ! git rev-parse --verify $MASTER_BRANCH >/dev/null; then
|
||||
die "Cannot find your master branch. Try: git branch -m <mymaster> $MASTER_BRANCH"
|
||||
fi
|
||||
|
||||
|
@ -116,7 +116,7 @@ gitflow_init() {
|
|||
gitflow_require_branches_equal $MASTER_BRANCH $ORIGIN/$MASTER_BRANCH
|
||||
fi
|
||||
|
||||
if git rev-parse --verify $DEVELOP_BRANCH &>/dev/null; then
|
||||
if git rev-parse --verify $DEVELOP_BRANCH >/dev/null; then
|
||||
gitflow_require_branches_equal $DEVELOP_BRANCH $ORIGIN/$DEVELOP_BRANCH
|
||||
else
|
||||
git checkout -q -b $DEVELOP_BRANCH $MASTER_BRANCH
|
||||
|
|
Loading…
Reference in a new issue