<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi, <br>
<br>
I am new in ITK development. <font face="sans-serif"><br>
I tried to make a new branch in ITK to store my changes. <br>
However, I found
after I run ./Utilities/SetupForDevelopment.sh, I can not perform
git
commit.</font><br>
It shows<br>
.git/hooks/hooks-config.bash: line 33: .:
.hooks-config.bash: file not found<br>
However .hooks-config.bash is right there. <br>
Please see the following shell outputs. I use Fedora 16. <br>
Anyone knows what is the problem? Thanks. <br>
<br>
best,<br>
Jian Cheng<br>
<br>
<br>
[jcheng@jcT530 ITK]$ git clone <a class="moz-txt-link-freetext" href="http://itk.org/ITK.git">http://itk.org/ITK.git</a> ITK_clean<br>
Cloning into 'ITK_clean'...<br>
remote: Counting objects: 316388, done.<br>
remote: Compressing objects: 100% (60595/60595), done.<br>
remote: Total 316388 (delta 252421), reused 316388 (delta 252421)<br>
Receiving objects: 100% (316388/316388), 77.79 MiB | 1.51 MiB/s,
done.<br>
Resolving deltas: 100% (252421/252421), done.<br>
[jcheng@jcT530 ITK]$ cd ITK_clean/<br>
[jcheng@jcT530 ITK_clean]$ git ci<br>
# On branch master<br>
nothing to commit (working directory clean)<br>
[jcheng@jcT530 ITK_clean]$ ./Utilities/SetupForDevelopment.sh <br>
Checking Git version...<br>
Git version 1.7.12 is OK.<br>
<br>
Setting pushurl for origin.<br>
<br>
Checking basic user information...<br>
Your commits will have the following author:<br>
<br>
Jian Cheng <a class="moz-txt-link-rfc2396E" href="mailto:jian.cheng.1983@gmail.com"><jian.cheng.1983@gmail.com></a><br>
<br>
Is the author name and email address above correct? [Y/n] y<br>
<br>
Setting up git hooks...<br>
Initialized empty Git repository in
/home/jcheng/mywork/backup/ITK/ITK_clean/.git/hooks/.git/<br>
Pulling the hooks...<br>
remote: Counting objects: 189, done.<br>
remote: Compressing objects: 100% (74/74), done.<br>
remote: Total 189 (delta 114), reused 185 (delta 111)<br>
Receiving objects: 100% (189/189), 37.70 KiB, done.<br>
Resolving deltas: 100% (114/114), done.<br>
From ..<br>
* remote-tracking branch origin/hooks -> FETCH_HEAD<br>
HEAD is now at 11679f8 commit-msg: Remove MERGE_HEAD check from
msg_is_merge<br>
Setting up the uncrustify hook...<br>
Setting up the KWStyle hook...<br>
Done.<br>
<br>
Setting up useful Git aliases...<br>
Would you like general Git aliases to be global? [y/N]:n<br>
<br>
Setting up Gerrit...<br>
Gerrit is a code review system that works with Git.<br>
<br>
In order to use Gerrit, an account must be registered at the review
site:<br>
<br>
<a class="moz-txt-link-freetext" href="http://review.source.kitware.com/p/ITK">http://review.source.kitware.com/p/ITK</a><br>
<br>
In order to register you need an OpenID<br>
<br>
<a class="moz-txt-link-freetext" href="http://openid.net/get-an-openid/">http://openid.net/get-an-openid/</a><br>
<br>
Enter your gerrit user (set in Gerrit Settings/Profile) [jcheng]:
jcheng<br>
<br>
Configuring 'gerrit' remote with user 'jcheng'...<br>
<br>
For more information on Gerrit usage, see<br>
<br>
<a class="moz-txt-link-freetext" href="http://www.itk.org/Wiki/ITK/Gerrit">http://www.itk.org/Wiki/ITK/Gerrit</a><br>
Would you like to verify authentication to Gerrit? [y/N]: y<br>
<br>
Fetching from gerrit to test SSH key configuration (Settings/SSH
Public Keys)<br>
Enter passphrase for key '/home/jcheng/.ssh/id_rsa': <br>
From review.source.kitware.com:ITK<br>
* [new branch] hooks -> gerrit/hooks<br>
* [new branch] master -> gerrit/master<br>
* [new branch] release -> gerrit/release<br>
Done.<br>
<br>
Configuring GerritId hook...<br>
This hook automatically add a "Change-Id" footer to commit messages<br>
to make interaction with Gerrit easier.<br>
To disable this feature, run<br>
<br>
git config hooks.GerritId false<br>
<br>
Done.<br>
<br>
Setting up the topic stage...<br>
Configuring the topic stage remote...<br>
Do you want to test push access itk.org? [y/N]: y<br>
Configuring push urls...<br>
Done.<br>
<br>
Testing ssh capabilities...<br>
Enter passphrase for key '/home/jcheng/.ssh/id_git_itk': <br>
Permission denied (publickey,keyboard-interactive).<br>
fatal: Could not read from remote repository.<br>
<br>
Please make sure you have the correct access rights<br>
and the repository exists.<br>
Failure during topic stage setup.<br>
---------------------------------<br>
<br>
SSH test to <a class="moz-txt-link-abbreviated" href="mailto:git@itk.org">git@itk.org</a> failed. You may need to request access at:<br>
<br>
<a class="moz-txt-link-freetext" href="https://www.kitware.com/Admin/SendPassword.cgi">https://www.kitware.com/Admin/SendPassword.cgi</a><br>
<br>
Note that push access to the stage/ITK is separate to Gerrit.<br>
<br>
Failed to setup topic stage. Run this again to setup stage.<br>
<br>
Suggesting git tips...<br>
<br>
A dynamic, informative Git shell prompt can be obtained by sourcing
the git<br>
bash-completion script in your ~/.bashrc. Set the PS1 environmental
variable as<br>
suggested in the comments at the top of the bash-completion script.
You may<br>
need to install the bash-completion package from your distribution
to obtain the<br>
script.<br>
<br>
<br>
ITK comes with a pre-commit hook to help committed code to conform
to the ITK<br>
Style Guidelines (See Documentation/Style.pdf). When committing
code, it can be<br>
passed through uncrustify (<a class="moz-txt-link-freetext" href="http://uncrustify.sourceforge.net">http://uncrustify.sourceforge.net</a>).
However, this<br>
feature is disabled by default. To enable this feature,<br>
<br>
git config --bool hooks.uncrustify true<br>
<br>
Done.<br>
<br>
[jcheng@jcT530 ITK_clean]$ git ci<br>
.git/hooks/hooks-config.bash: line 33: .: .hooks-config.bash: file
not found<br>
[jcheng@jcT530 ITK_clean]$ uname -av<br>
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<br>
[jcheng@jcT530 ITK_clean]$ ll .hooks-config.bash<br>
-rw-rw-r--. 1 jcheng jcheng 1.1K Jun 1 15:58 .hooks-config.bash<br>
<br>
</body>
</html>