commit | fff16edd881fee12547114d37e64d86582a9e392 | [log] [tgz] |
---|---|---|
author | Jon Bernard <jbernard@tuxion.com> | 周六 4月 23 13:09:57 2011 -0400 |
committer | Jon Bernard <jbernard@tuxion.com> | 周六 4月 23 13:09:57 2011 -0400 |
tree | 63043d16ff2d15e865536bbcb578aac3420a838a | |
parent | a7a89cdb13e0022c67fe2cd688708826828a60d6 [diff] |
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.
diff --git a/git-flow b/git-flow index fa87e71..f30db32 100755 --- a/git-flow +++ b/git-flow
@@ -42,7 +42,7 @@ set -x fi -export GITFLOW_DIR=$(dirname "$0") +export GITFLOW_DIR=$(dirname $(readlink "$0")) usage() { echo "usage: git flow <subcommand>"