Fixed a problem with redirection of stdout/stderr. The specifier '2>&1'
should come *after* the redirection of stdout to /dev/null. For an
explanation and a simple demonstration of the differences, see:
http://is.gd/8srJR
diff --git a/git-flow b/git-flow
index a7e4a26..7f8c90c 100755
--- a/git-flow
+++ b/git-flow
@@ -77,7 +77,7 @@
if [ "$1" != "" ] && ! echo "$1" | grep -q "^-"; then
SUBACTION="$1"; shift
fi
- if ! type "cmd_$SUBACTION" > /dev/null 2>&1; then
+ if ! type "cmd_$SUBACTION" >/dev/null 2>&1; then
warn "Unknown subcommand: '$SUBACTION'"
usage
exit 1