Skip to content

Commit fff16ed

Browse files
committed
Set GITFLOW_DIR correctly if git-flow is a symbolic link
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.
1 parent a7a89cd commit fff16ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git-flow

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ if [ "$DEBUG" = "yes" ]; then
4242
set -x
4343
fi
4444

45-
export GITFLOW_DIR=$(dirname "$0")
45+
export GITFLOW_DIR=$(dirname $(readlink "$0"))
4646

4747
usage() {
4848
echo "usage: git flow <subcommand>"

0 commit comments

Comments
 (0)