Skip to content

Commit

Permalink
Prevent error message on git flow init
Browse files Browse the repository at this point in the history
As explained by Peter van der Does, the init command does not have the
init function, nor does it need one.
  • Loading branch information
Fred Condo committed Jul 10, 2012
1 parent aa93d23 commit b72a395
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion git-flow
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ main() {
fi

# run the specified action
if [ $SUBACTION != "help" ]; then
if [ $SUBACTION != "help" ] && [ $SUBCOMMAND != "init" ] ; then
init
fi
cmd_$SUBACTION "$@"
Expand Down

0 comments on commit b72a395

Please sign in to comment.