replace pre-commit hook with hook in pre-create

This commit is contained in:
Jörg Thalheim
2023-09-13 15:48:34 +02:00
parent 61367a1f63
commit f63cfb4462
3 changed files with 4 additions and 53 deletions

View File

@@ -9,6 +9,8 @@ currentBranch="$(git rev-parse --abbrev-ref HEAD)"
user="$(tea login list -o simple | cut -d" " -f4)"
tempRemoteBranch="$user-$currentBranch"
nix fmt -- --fail-on-change
git log --reverse --pretty="format:%s%n%n%b%n%n" "$remoteName/$targetBranch..HEAD" > "$TMPDIR"/commit-msg
$EDITOR "$TMPDIR"/commit-msg