summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnand Avati <avati@redhat.com>2013-08-14 16:11:40 -0700
committerAnand Avati <avati@redhat.com>2013-08-14 22:29:17 -0700
commit3d509b1b5acfe55d003f0ae9b51486247226e16f (patch)
tree5258ba648c5e594f1ae83344c5e4559af4cde53f
parent1ea8ee6bc92ad887d47d3aff2404404681c4cfa9 (diff)
rfc.sh: Include BUG: header even in first run
Set the commit hook before entiring editor mode. This fixes the error where rfc.sh after first clone does not set BUG: header Change-Id: Ic0e9f2d3f656bc81e29d35556022fbdff2f61225 BUG: 764890 Signed-off-by: Anand Avati <avati@redhat.com> Reviewed-on: http://review.gluster.org/5632
-rwxr-xr-xrfc.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/rfc.sh b/rfc.sh
index 2c91c30ed08..04efa6f3e5f 100755
--- a/rfc.sh
+++ b/rfc.sh
@@ -85,13 +85,13 @@ assert_diverge()
main()
{
+ set_hooks_commit_msg;
+
if [ -e "$1" ]; then
editor_mode "$@";
return;
fi
- set_hooks_commit_msg;
-
rebase_changes;
assert_diverge;