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

Jian Cheng jian.cheng.1983 at gmail.com
Sat Jun 1 16:05:21 EDT 2013


Hi,

I am new in ITK development.
I tried to make a new branch in ITK to store my changes.
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.
Please see the following shell outputs. I use Fedora 16.
Anyone knows what is the problem? Thanks.

best,
Jian Cheng


[jcheng at jcT530 ITK]$ git clone http://itk.org/ITK.git  ITK_clean
Cloning into 'ITK_clean'...
remote: Counting objects: 316388, done.
remote: Compressing objects: 100% (60595/60595), done.
remote: Total 316388 (delta 252421), reused 316388 (delta 252421)
Receiving objects: 100% (316388/316388), 77.79 MiB | 1.51 MiB/s, done.
Resolving deltas: 100% (252421/252421), done.
[jcheng at jcT530 ITK]$ cd ITK_clean/
[jcheng at jcT530 ITK_clean]$ git ci
# On branch master
nothing to commit (working directory clean)
[jcheng at jcT530 ITK_clean]$ ./Utilities/SetupForDevelopment.sh
Checking Git version...
Git version 1.7.12 is OK.

Setting pushurl for origin.

Checking basic user information...
Your commits will have the following author:

   Jian Cheng <jian.cheng.1983 at gmail.com>

Is the author name and email address above correct? [Y/n] y

Setting up git hooks...
Initialized empty Git repository in 
/home/jcheng/mywork/backup/ITK/ITK_clean/.git/hooks/.git/
Pulling the hooks...
remote: Counting objects: 189, done.
remote: Compressing objects: 100% (74/74), done.
remote: Total 189 (delta 114), reused 185 (delta 111)
Receiving objects: 100% (189/189), 37.70 KiB, done.
Resolving deltas: 100% (114/114), done.
 From ..
  * remote-tracking branch origin/hooks -> FETCH_HEAD
HEAD is now at 11679f8 commit-msg: Remove MERGE_HEAD check from msg_is_merge
Setting up the uncrustify hook...
Setting up the KWStyle hook...
Done.

Setting up useful Git aliases...
Would you like general Git aliases to be global? [y/N]:n

Setting up Gerrit...
Gerrit is a code review system that works with Git.

In order to use Gerrit, an account must be registered at the review site:

   http://review.source.kitware.com/p/ITK

In order to register you need an OpenID

   http://openid.net/get-an-openid/

Enter your gerrit user (set in Gerrit Settings/Profile) [jcheng]: jcheng

Configuring 'gerrit' remote with user 'jcheng'...

For more information on Gerrit usage, see

   http://www.itk.org/Wiki/ITK/Gerrit
Would you like to verify authentication to Gerrit? [y/N]: y

Fetching from gerrit to test SSH key configuration (Settings/SSH Public 
Keys)
Enter passphrase for key '/home/jcheng/.ssh/id_rsa':
 From review.source.kitware.com:ITK
  * [new branch]      hooks      -> gerrit/hooks
  * [new branch]      master     -> gerrit/master
  * [new branch]      release    -> gerrit/release
Done.

Configuring GerritId hook...
This hook automatically add a "Change-Id" footer to commit messages
to make interaction with Gerrit easier.
To disable this feature, run

   git config hooks.GerritId false

Done.

Setting up the topic stage...
Configuring the topic stage remote...
Do you want to test push access itk.org? [y/N]: y
Configuring push urls...
Done.

Testing ssh capabilities...
Enter passphrase for key '/home/jcheng/.ssh/id_git_itk':
Permission denied (publickey,keyboard-interactive).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
Failure during topic stage setup.
---------------------------------

SSH test to git at itk.org failed. You may need to request access at:

https://www.kitware.com/Admin/SendPassword.cgi

Note that push access to the stage/ITK is separate to Gerrit.

Failed to setup topic stage. Run this again to setup stage.

Suggesting git tips...

A dynamic, informative Git shell prompt can be obtained by sourcing the git
bash-completion script in your ~/.bashrc.  Set the PS1 environmental 
variable as
suggested in the comments at the top of the bash-completion script. You may
need to install the bash-completion package from your distribution to 
obtain the
script.


ITK comes with a pre-commit hook to help committed code to conform to 
the ITK
Style Guidelines (See Documentation/Style.pdf).  When committing code, 
it can be
passed through uncrustify (http://uncrustify.sourceforge.net). However, this
feature is disabled by default.  To enable this feature,

   git config --bool hooks.uncrustify true

Done.

[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]$ uname -av
Linux jcT530 3.6.11-4.fc16.x86_64 #1 SMP Tue Jan 8 20:57:42 UTC 2013 
x86_64 x86_64 x86_64 GNU/Linux
[jcheng at jcT530 ITK_clean]$ ll .hooks-config.bash
-rw-rw-r--. 1 jcheng jcheng 1.1K Jun  1 15:58 .hooks-config.bash

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-developers/attachments/20130601/be0d78b3/attachment.htm>


More information about the Insight-developers mailing list