A fully functional Android app built entirely with Kotlin and Jetpack Compose
Remove automatic installation of git hooks
Don Turner98ee2bd2ff9e
diff --git a/settings.gradle.kts b/settings.gradle.ktsindex 9d86e6622..013fbfa5c 100644--- a/settings.gradle.kts+++ b/settings.gradle.kts@@ -53,18 +53,4 @@ include(":feature:bookmarks")include(":feature:topic")include(":lint")include(":sync:work")-include(":sync:sync-test")---val prePushHook = file(".git/hooks/pre-push")-val commitMsgHook = file(".git/hooks/commit-msg")-val hooksInstalled = commitMsgHook.exists()- && prePushHook.exists()- && prePushHook.readBytes().contentEquals(file("tools/pre-push").readBytes())--if (!hooksInstalled) {- exec {- commandLine("tools/setup.sh")- workingDir = rootProject.projectDir- }-}\ No newline at end of file+include(":sync:sync-test")\ No newline at end of filediff --git a/tools/setup.sh b/tools/setup.shindex 2e062838a..2b526f863 100755--- a/tools/setup.sh+++ b/tools/setup.sh@@ -20,11 +20,6 @@ NC='\033[0m' # No ColorGIT_DIR=$(git rev-parse --git-dir 2> /dev/null)GIT_ROOT=$(git rev-parse --show-toplevel 2> /dev/null)-if [[ ! "$GIT_ROOT" =~ /nowinandroid$ ]]; then- echo -e "${RED}ERROR:${NC} Please run this script from the cloned nowinandroid directory."- exit 1-fi-echo "Installing git commit-message hook"echocurl -sSLo "${GIT_DIR}/hooks/commit-msg" \