Skip to content

Commit

Permalink
Fix always-empty value for $DOT_GIT_DIR variable.
Browse files Browse the repository at this point in the history
This fixes nvie#53.
  • Loading branch information
nvie committed Apr 17, 2011
1 parent e024fa4 commit a7a89cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gitflow-common
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ gitflow_is_initialized() {

# loading settings that can be overridden using git config
gitflow_load_settings() {
export DOT_GIT_DIR=$(git rev-parse --git-dir >/dev/null 2>&1)
export DOT_GIT_DIR=$(git rev-parse --git-dir 2>/dev/null)
export MASTER_BRANCH=$(git config --get gitflow.branch.master)
export DEVELOP_BRANCH=$(git config --get gitflow.branch.develop)
export ORIGIN=$(git config --get gitflow.origin || echo origin)
Expand Down

0 comments on commit a7a89cd

Please sign in to comment.