<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Setting Up Git Commit Email Notifications</title>
	<atom:link href="http://fclose.com/b/linux/1473/setting-up-git-commit-email-notification/feed/" rel="self" type="application/rss+xml" />
	<link>http://fclose.com/b/linux/1473/setting-up-git-commit-email-notification/</link>
	<description>Clear solutions, tutorials and tips on Linux and virtualization from the author&#039;s experience with clusters.</description>
	<lastBuildDate>Fri, 10 Feb 2012 02:48:49 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Setting Up Git Commit Email Notification &#8211; Linux and Virtualization &#124; TechRetriever</title>
		<link>http://fclose.com/b/linux/1473/setting-up-git-commit-email-notification/comment-page-2/#comment-952</link>
		<dc:creator>Setting Up Git Commit Email Notification &#8211; Linux and Virtualization &#124; TechRetriever</dc:creator>
		<pubDate>Sat, 07 Jan 2012 18:29:33 +0000</pubDate>
		<guid isPermaLink="false">http://zhiqiangma.info/?p=1473#comment-952</guid>
		<description>&lt;p&gt;[...] Article from http://fclose.com/b/linux/1473/setting-up-git-commit-email-notification/         This entry was posted in Social Bookmarks by TechRetriever. Bookmark the [...]&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>[...] Article from <a href="http://fclose.com/b/linux/1473/setting-up-git-commit-email-notification/" rel="nofollow">http://fclose.com/b/linux/1473/setting-up-git-commit-email-notification/</a>         This entry was posted in Social Bookmarks by TechRetriever. Bookmark the [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: De svn a git en 5 minutos &#171; Luis Uribe</title>
		<link>http://fclose.com/b/linux/1473/setting-up-git-commit-email-notification/comment-page-2/#comment-635</link>
		<dc:creator>De svn a git en 5 minutos &#171; Luis Uribe</dc:creator>
		<pubDate>Tue, 01 Nov 2011 23:30:13 +0000</pubDate>
		<guid isPermaLink="false">http://zhiqiangma.info/?p=1473#comment-635</guid>
		<description>&lt;p&gt;[...] git init &#8211;bare root@server:~# vim description root@server:~# cp post-receive hooks/ // Hook para el envio de correos después de cada commit  root@server:~# chmod +x hooks/post-receive root@server:~# cat config // Líneas para el envio de [...]&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>[...] git init &#8211;bare root@server:~# vim description root@server:~# cp post-receive hooks/ // Hook para el envio de correos después de cada commit  root@server:~# chmod +x hooks/post-receive root@server:~# cat config // Líneas para el envio de [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zhiqiang Ma</title>
		<link>http://fclose.com/b/linux/1473/setting-up-git-commit-email-notification/comment-page-2/#comment-540</link>
		<dc:creator>Zhiqiang Ma</dc:creator>
		<pubDate>Tue, 27 Sep 2011 08:09:19 +0000</pubDate>
		<guid isPermaLink="false">http://zhiqiangma.info/?p=1473#comment-540</guid>
		<description>&lt;p&gt;Hi Steven,&lt;/p&gt;
&lt;p&gt;This script should be run by the git server automatically. Just save a copy in hooks/post-receive in the git directory on the server side. It will be invoked automatically by git when you push to the repository.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hi Steven,</p>
<p>This script should be run by the git server automatically. Just save a copy in hooks/post-receive in the git directory on the server side. It will be invoked automatically by git when you push to the repository.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steven Dobbelaere</title>
		<link>http://fclose.com/b/linux/1473/setting-up-git-commit-email-notification/comment-page-2/#comment-539</link>
		<dc:creator>Steven Dobbelaere</dc:creator>
		<pubDate>Tue, 27 Sep 2011 07:20:39 +0000</pubDate>
		<guid isPermaLink="false">http://zhiqiangma.info/?p=1473#comment-539</guid>
		<description>&lt;p&gt;I installed the script but when I execute it in the terminal I get this error:&lt;br /&gt;
&#8220;GIT_DIR not set&#8221;&lt;/p&gt;
&lt;p&gt;Any idea on how I can set my GIT_DIR variable&lt;br /&gt;
I suspect I have to do it here:&lt;/p&gt;
&lt;p&gt;# &#8212; Config&lt;br /&gt;
# Set GIT_DIR either from the working directory, or from the environment&lt;br /&gt;
# variable.&lt;br /&gt;
GIT_DIR=$(git rev-parse &#8211;git-dir 2&gt;/dev/null)&lt;br /&gt;
if [ -z &quot;$GIT_DIR&quot; ]; then&lt;br /&gt;
	echo &gt;&amp;2 &#8220;fatal: post-receive: GIT_DIR not set&#8221;&lt;br /&gt;
	exit 1&lt;br /&gt;
fi&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I installed the script but when I execute it in the terminal I get this error:<br />
&#8220;GIT_DIR not set&#8221;</p>
<p>Any idea on how I can set my GIT_DIR variable<br />
I suspect I have to do it here:</p>
<p># &#8212; Config<br />
# Set GIT_DIR either from the working directory, or from the environment<br />
# variable.<br />
GIT_DIR=$(git rev-parse &#8211;git-dir 2&gt;/dev/null)<br />
if [ -z "$GIT_DIR" ]; then<br />
	echo &gt;&amp;2 &#8220;fatal: post-receive: GIT_DIR not set&#8221;<br />
	exit 1<br />
fi</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Akzhan</title>
		<link>http://fclose.com/b/linux/1473/setting-up-git-commit-email-notification/comment-page-2/#comment-529</link>
		<dc:creator>Akzhan</dc:creator>
		<pubDate>Tue, 06 Sep 2011 15:01:33 +0000</pubDate>
		<guid isPermaLink="false">http://zhiqiangma.info/?p=1473#comment-529</guid>
		<description>&lt;p&gt;Feel free to use colored diffs with https://github.com/bitboxer/git-commit-notifier&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Feel free to use colored diffs with <a href="https://github.com/bitboxer/git-commit-notifier" rel="nofollow">https://github.com/bitboxer/git-commit-notifier</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zhiqiang Ma</title>
		<link>http://fclose.com/b/linux/1473/setting-up-git-commit-email-notification/comment-page-2/#comment-252</link>
		<dc:creator>Zhiqiang Ma</dc:creator>
		<pubDate>Tue, 29 Mar 2011 03:27:02 +0000</pubDate>
		<guid isPermaLink="false">http://zhiqiangma.info/?p=1473#comment-252</guid>
		<description>&lt;p&gt;This script is designed to be automatically invoked by git rather than for run from command line.&lt;/p&gt;
&lt;p&gt;You may consider adapting it for command line use if you like. The source code can be downloaded in the link in the post.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>This script is designed to be automatically invoked by git rather than for run from command line.</p>
<p>You may consider adapting it for command line use if you like. The source code can be downloaded in the link in the post.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: digitalpbk</title>
		<link>http://fclose.com/b/linux/1473/setting-up-git-commit-email-notification/comment-page-2/#comment-251</link>
		<dc:creator>digitalpbk</dc:creator>
		<pubDate>Tue, 29 Mar 2011 03:05:11 +0000</pubDate>
		<guid isPermaLink="false">http://zhiqiangma.info/?p=1473#comment-251</guid>
		<description>&lt;p&gt;Can somebody explain how to run this script from command line ?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Can somebody explain how to run this script from command line ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sam</title>
		<link>http://fclose.com/b/linux/1473/setting-up-git-commit-email-notification/comment-page-1/#comment-97</link>
		<dc:creator>Sam</dc:creator>
		<pubDate>Tue, 21 Sep 2010 19:24:06 +0000</pubDate>
		<guid isPermaLink="false">http://zhiqiangma.info/?p=1473#comment-97</guid>
		<description>&lt;p&gt;change sh to bash.&lt;br /&gt;
remove -r option&lt;br /&gt;
works fine then&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>change sh to bash.<br />
remove -r option<br />
works fine then</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zhiqiang Ma</title>
		<link>http://fclose.com/b/linux/1473/setting-up-git-commit-email-notification/comment-page-1/#comment-96</link>
		<dc:creator>Zhiqiang Ma</dc:creator>
		<pubDate>Tue, 24 Aug 2010 01:05:02 +0000</pubDate>
		<guid isPermaLink="false">http://zhiqiangma.info/?p=1473#comment-96</guid>
		<description>&lt;p&gt;Hi Rainer,&lt;/p&gt;
&lt;p&gt;You can find out the lines that have the msg_count and comment them out to bypass these warnings (there are only several lines). It seems the bash on your computer doesn&#8217;t support the ((msg_count+=1)) operation.&lt;/p&gt;
&lt;p&gt;Nice to know that you find the script useful ;)&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hi Rainer,</p>
<p>You can find out the lines that have the msg_count and comment them out to bypass these warnings (there are only several lines). It seems the bash on your computer doesn&#8217;t support the ((msg_count+=1)) operation.</p>
<p>Nice to know that you find the script useful ;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rainer</title>
		<link>http://fclose.com/b/linux/1473/setting-up-git-commit-email-notification/comment-page-1/#comment-95</link>
		<dc:creator>Rainer</dc:creator>
		<pubDate>Tue, 24 Aug 2010 00:56:11 +0000</pubDate>
		<guid isPermaLink="false">http://zhiqiangma.info/?p=1473#comment-95</guid>
		<description>&lt;p&gt;aaah, thanks for the quick reply!&lt;/p&gt;
&lt;p&gt;i managed to find the -S option and took it out. had to also remove -r and now i&#8217;m happily sending mails, thanks! &lt;/p&gt;
&lt;p&gt;:)&lt;/p&gt;
&lt;p&gt;still have ugly output, though, something is wrong around the msg_count variable:&lt;/p&gt;
&lt;p&gt;Counting objects: 5, done.&lt;br /&gt;
Delta compression using up to 2 threads.&lt;br /&gt;
Total 3 (delta 2), reused 0 (delta 0)&lt;br /&gt;
hooks/post-receive: 706: msg_count+=1: not found&lt;br /&gt;
[: 706: ==: unexpected operator&lt;br /&gt;
hooks/post-receive: 706: msg_count+=1: not found&lt;br /&gt;
[: 706: ==: unexpected operator&lt;br /&gt;
hooks/post-receive: 706: msg_count+=1: not found&lt;br /&gt;
[: 706: ==: unexpected operator&lt;br /&gt;
hooks/post-receive: 706: msg_count+=1: not found&lt;br /&gt;
[: 706: ==: unexpected operator&lt;br /&gt;
hooks/post-receive: 706: msg_count+=1: not found&lt;br /&gt;
[: 706: ==: unexpected operator&lt;br /&gt;
hooks/post-receive: 706: msg_count+=1: not found&lt;br /&gt;
[: 706: ==: unexpected operator&lt;br /&gt;
cat: /tmp/git-email-subject-10682: No such file or directory&lt;br /&gt;
&#8230;&lt;br /&gt;
but things work! thanks!&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>aaah, thanks for the quick reply!</p>
<p>i managed to find the -S option and took it out. had to also remove -r and now i&#8217;m happily sending mails, thanks! </p>
<p>:)</p>
<p>still have ugly output, though, something is wrong around the msg_count variable:</p>
<p>Counting objects: 5, done.<br />
Delta compression using up to 2 threads.<br />
Total 3 (delta 2), reused 0 (delta 0)<br />
hooks/post-receive: 706: msg_count+=1: not found<br />
[: 706: ==: unexpected operator<br />
hooks/post-receive: 706: msg_count+=1: not found<br />
[: 706: ==: unexpected operator<br />
hooks/post-receive: 706: msg_count+=1: not found<br />
[: 706: ==: unexpected operator<br />
hooks/post-receive: 706: msg_count+=1: not found<br />
[: 706: ==: unexpected operator<br />
hooks/post-receive: 706: msg_count+=1: not found<br />
[: 706: ==: unexpected operator<br />
hooks/post-receive: 706: msg_count+=1: not found<br />
[: 706: ==: unexpected operator<br />
cat: /tmp/git-email-subject-10682: No such file or directory<br />
&#8230;<br />
but things work! thanks!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

