build: update link for .git/hooks/commit-msg

Add -L option to curl cmd to follow a redirect

Change-Id: I273248d2a610174cc3905b0ffb8f586deb191f5f
Signed-off-by: Kaleb S KEITHLEY <kkeithle@redhat.com>
Reviewed-on: http://review.gluster.org/13244
This commit is contained in:
Kaleb S KEITHLEY 2016-01-14 09:57:47 -05:00 committed by Kaleb KEITHLEY
parent 856edc3141
commit de2c5297ad

6
rfc.sh
View File

@ -22,15 +22,15 @@ branch="master";
set_hooks_commit_msg()
{
f=".git/hooks/commit-msg";
u="http://review.gluster.com/tools/hooks/commit-msg";
u="http://review.gluster.org/tools/hooks/commit-msg";
if [ -x "$f" ]; then
return;
fi
curl -o $f $u || wget -O $f $u;
curl -L -o $f $u || wget -O $f $u;
chmod +x .git/hooks/commit-msg;
chmod +x $f
# Let the 'Change-Id: ' header get assigned on first run of rfc.sh
GIT_EDITOR=true git commit --amend;