浏览代码

Mention --no-verify in error message

rl1987 5 年之前
父节点
当前提交
9c90bddc42
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      scripts/maint/pre-push.git-hook

+ 2 - 0
scripts/maint/pre-push.git-hook

@@ -42,6 +42,7 @@ do
 		if [ -n "$commit" ]
 		then
 			echo >&2 "Found fixup! commit in $local_ref, not pushing"
+			echo >&2 "If you really want to push this, use --no-verify."
 			exit 1
 		fi
 
@@ -50,6 +51,7 @@ do
 		if [ -n "$commit" ]
 		then
 			echo >&2 "Found squash! commit in $local_ref, not pushing"
+			echo >&2 "If you really want to push this, use --no-verify."
 			exit 1
 		fi
 	fi