Skip to content

Commit a7a89cd

Browse files
committed
Fix always-empty value for $DOT_GIT_DIR variable.
This fixes nvie#53.
1 parent e024fa4 commit a7a89cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gitflow-common

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ gitflow_is_initialized() {
181181

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

0 commit comments

Comments
 (0)