diff options
author | Kaleb S KEITHLEY <kkeithle@redhat.com> | 2016-01-14 09:57:47 -0500 |
---|---|---|
committer | Kaleb KEITHLEY <kkeithle@redhat.com> | 2016-01-14 07:02:48 -0800 |
commit | de2c5297ad9d26c844823bcdbfc0264d8bf7ddd7 (patch) | |
tree | a4a8fd0de0eab0547f5694d6b84735438c46e11f /rfc.sh | |
parent | 856edc31417dd9459776ee68dff2d59c002eef74 (diff) |
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
Diffstat (limited to 'rfc.sh')
-rwxr-xr-x | rfc.sh | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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; |