Permalink
Browse files

Add a proposal for our Windows users.

Will this help you guys out?
  • Loading branch information...
1 parent b4626cb commit 4b9545e5822d3dee65a673e81b80328df7bb151e @nvie committed Nov 30, 2011
Showing with 3 additions and 1 deletion.
  1. +3 −1 git-flow
View
@@ -42,7 +42,9 @@ if [ "$DEBUG" = "yes" ]; then
set -x
fi
-export GITFLOW_DIR=$(dirname "$0")
+# The sed expression here replaces all backslashes by forward slashes.
+# This helps our Windows users, while not bothering our Unix users.
+export GITFLOW_DIR=$(dirname $(echo "$0" | sed -e 's,\\,/,g'))
usage() {
echo "usage: git flow <subcommand>"

0 comments on commit 4b9545e

Please sign in to comment.