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

Jian Cheng jian.cheng.1983 at gmail.com
Mon Jun 3 08:21:56 EDT 2013


Hi Brad,

Thanks for your reply.
See the output blow.

best,
Jian Cheng

[jcheng at jcT530 ITK_clean]$ git ci
.git/hooks/hooks-config.bash: line 33: .: .hooks-config.bash: file not found
[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

On 06/03/2013 08:17 AM, Brad King wrote:
> On 06/01/2013 04:05 PM, Jian Cheng wrote:
>> However, I found after I run ./Utilities/SetupForDevelopment.sh, I can not perform git commit.
>> It shows
>>          .git/hooks/hooks-config.bash: line 33: .: .hooks-config.bash: file not found
>> However .hooks-config.bash is right there.
> That is indeed strange.  Line 33 of hooks-config.bash is:
>
>   config=".hooks-config.bash" && test -r "$config" && . "$config"
>
> so it tests for existence and readability before loading the file.
>
> Please run the command
>
>   $ bash -x .git/hooks/hooks-config.bash
>
> and post the output here.
>
> Thanks,
> -Brad



More information about the Insight-developers mailing list