Skip to content

Commit

Permalink
Set GITFLOW_DIR correctly if git-flow is a symbolic link
Browse files Browse the repository at this point in the history
This allows a user to create a symbolic link to git-flow in their
personal bin directory (e.g. ~/bin) without having to add the source
tree to their $PATH or do a system install.
  • Loading branch information
jbernard committed Apr 23, 2011
1 parent a7a89cd commit fff16ed
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 @@ -42,7 +42,7 @@ if [ "$DEBUG" = "yes" ]; then
set -x
fi

export GITFLOW_DIR=$(dirname "$0")
export GITFLOW_DIR=$(dirname $(readlink "$0"))

usage() {
echo "usage: git flow <subcommand>"
Expand Down

1 comment on commit fff16ed

@marcoscoelho
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

error in win7 using msysgit

Please sign in to comment.