mainブランチへの直接コミットはweblateのマージで必要そうなので、pre-commitでは警告だけに留める
This commit is contained in:
parent
b00189eecb
commit
387d8d2969
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue