mainブランチへの直接コミットはweblateのマージで必要そうなので、pre-commitでは警告だけに留める

This commit is contained in:
tateisu 2021-07-04 01:33:06 +09:00
parent b00189eecb
commit 387d8d2969
1 changed files with 1 additions and 5 deletions

View File

@ -151,12 +151,8 @@ print "(total)string resource count=$nameCount\n";
$hasError and die "please fix error(s).\n";
# ブランチがmainなら直接コミットさせない
print "# branch=$branch\n";
if($preCommit){
# mainブランチに直接コミットすることはなくなった
$branch eq 'main' and die "!!!! current branch is main. Direct commits and pushes are prohibited. !!!!\n";
}
($branch eq 'main') and $preCommit and say "main ブランチへの直接のコミットはなるべく避けましょう";
# Weblateの未マージのブランチがあるか調べる
system qq(git fetch weblate -q);