[Insight-developers] I cannot commit after I run ./Utilities/SetupForDevelopment.sh

Brad King brad.king at kitware.com
Mon Jun 3 08:31:04 EDT 2013


On 06/03/2013 08:21 AM, Jian Cheng wrote:
> [jcheng at jcT530 ITK_clean]$ git ci
> .git/hooks/hooks-config.bash: line 33: .: .hooks-config.bash: file not found

Is "git ci" an alias?  Does "git commit" work?

> [jcheng at jcT530 ITK_clean]$ bash -x .git/hooks/hooks-config.bash
> + test -z ''
> ++ git rev-parse --git-dir
> + export GIT_DIR=.git
> + GIT_DIR=.git
> + hooks_config=.hooks-config
> + test -r .hooks-config
> + config=.hooks-config.bash
> + test -r .hooks-config.bash
> + . .hooks-config.bash
> ++ hooks_chain_pre_commit=Utilities/Hooks/pre-commit
> ++ hooks_chain_commit_msg=Utilities/Hooks/commit-msg
> ++ hooks_chain_prepare_commit_msg=Utilities/Hooks/prepare-commit-msg
> + HOOKS_DIR=.git/hooks

So it works when run directly but not under the commit hook.
Run the command

 (set -x && export SHELLOPTS GIT_TRACE=1 && git commit -m "") >commit.log 2>&1

and post the commit.log output please.

-Brad


More information about the Insight-developers mailing list