Bash and Git Stream Error in Shared File

I already installed Git Flow, which seems like a great tool, but when I run the command git flow feature start Test, I got the following error:

/usr/lib/git-core/git-flow: 301: export: Internal/WPLion/gitflow/.git: bad variable name

So, I tried to find out what was wrong, and I found that the /user/lib/git-core/gitflow-commonfollowing code could not be executed inside the script file :

export DOT_GIT_DIR=$(cd "$DOT_GIT_DIR" && pwd)

which is in line 301.

For debugging the script, I use the commands echoand exit 1to break the execution, so the code before 301 is as follows:

DOT_GIT_DIR=$(git rev-parse --git-dir)

so when I use the above command, I get the following result on my bash:

.

and when I try echosomething after line 301, of course the script breaks.

, git rev-parse --git-dir, , DOT_GIT_DIR, :

/media/merianos/Large Internal/WPLion/gitflow/.git

git .

, ? ?

+4
1

ok, .

, , .

, , /user/lib/git-core/gitflow-common ( Ubuntu) 301 302, :

export DOT_GIT_DIR=$(cd "$DOT_GIT_DIR" && pwd)
export HOOKS_DIR=$(git config --get gitflow.path.hooks || echo "$DOT_GIT_DIR"/hooks) # the second option is used to support previous versions of git-flow

:

export DOT_GIT_DIR="$(cd $DOT_GIT_DIR && pwd)"
export HOOKS_DIR="$(git config --get gitflow.path.hooks || echo "$DOT_GIT_DIR"/hooks)" # the second option is used to support previous versions of git-flow
0

All Articles