Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.
Dart blogconfluence-alternativecontent-managementcontent-servicesdocumentationflutternote-takingnotion-alternativeproject-managementtask-managementteam-collaborationwiki
fix: Made githook scripts executable
MikeWallaceDev6fcc37e15ce8
diff --git a/.githooks/pre-commit b/.githooks/pre-commitold mode 100644new mode 100755index d7617246c9..d27345fe71--- a/.githooks/pre-commit+++ b/.githooks/pre-commit@@ -1,5 +1,7 @@#!/usr/bin/env bash+echo "Running local AppFlowy pre-commit hook."+#flutter format .##https://gist.github.com/benmccallum/28e4f216d9d72f5965133e6c43aaff6elimit=$(( 1 * 2**20 )) # 1MB@@ -31,4 +33,4 @@ for file in $( git diff-index --cached --name-only $against ); dofile_too_large $filename $file_sizeexit 1;fi-done\ No newline at end of file+donediff --git a/.githooks/pre-push b/.githooks/pre-pushold mode 100644new mode 100755index 1636fb8661..ad7d19a16e--- a/.githooks/pre-push+++ b/.githooks/pre-push@@ -1,15 +1,20 @@#!/usr/bin/env bash+echo "Running local AppFlowy pre-push hook."+if [[ `git status --porcelain` ]]; thenprintf "\e[31;1m%s\e[0m\n" 'This script needs to run against committed code only. Please commit or stash you changes.'exit 1fi+printf "\e[33;1m%s\e[0m\n" 'Running the Flutter analyzer'flutter analyze+if [ $? -ne 0 ]; thenprintf "\e[31;1m%s\e[0m\n" 'Flutter analyzer error'exit 1fi+printf "\e[33;1m%s\e[0m\n" 'Finished running the Flutter analyzer'printf "\e[33;1m%s\e[0m\n" 'Running unit tests'