diff --git a/Makefile b/Makefile index cee2f456..6cf13bca 100644 --- a/Makefile +++ b/Makefile @@ -49,7 +49,7 @@ help: .PHONY: test test: - prove $(prove) $(test) + prove $(prove) -v $(test) test-all: test docker-tests diff --git a/test/error.t b/test/error.t index 8604c1cf..0aadf289 100644 --- a/test/error.t +++ b/test/error.t @@ -115,6 +115,14 @@ clone-foo-and-bar ) } +whoami +ls -al +cd .git + git rev-parse --git-dir &> /dev/null || + echo "Not inside a git repository." + echo $? + strace git rev-parse --git-dir +cd - { is "$( cd .git diff --git a/test/setup b/test/setup index 7d40bdf7..d00778e3 100644 --- a/test/setup +++ b/test/setup @@ -29,6 +29,7 @@ if [ ! -f "${HOME}/.gitconfig" ]; then git config --global user.name "Your Name" git config --global init.defaultBranch "master" git config --global --add safe.directory "$(pwd)" + git config --global --add safe.directory "$(pwd)/*" fi # To be able to view current GIT confirguration during tests execution, # run the test suite by adding the '-v' option to the prove command.