Skip to content

Commit f27365f

Browse files
authored
Merge pull request #335 from dturner/main
Remove automatic installation of git hooks
2 parents 40c0cb2 + 98ee2bd commit f27365f

File tree

2 files changed

+1
-20
lines changed

2 files changed

+1
-20
lines changed

settings.gradle.kts

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -53,18 +53,4 @@ include(":feature:bookmarks")
5353
include(":feature:topic")
5454
include(":lint")
5555
include(":sync:work")
56-
include(":sync:sync-test")
57-
58-
59-
val prePushHook = file(".git/hooks/pre-push")
60-
val commitMsgHook = file(".git/hooks/commit-msg")
61-
val hooksInstalled = commitMsgHook.exists()
62-
&& prePushHook.exists()
63-
&& prePushHook.readBytes().contentEquals(file("tools/pre-push").readBytes())
64-
65-
if (!hooksInstalled) {
66-
exec {
67-
commandLine("tools/setup.sh")
68-
workingDir = rootProject.projectDir
69-
}
70-
}
56+
include(":sync:sync-test")

tools/setup.sh

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,6 @@ NC='\033[0m' # No Color
2020
GIT_DIR=$(git rev-parse --git-dir 2> /dev/null)
2121
GIT_ROOT=$(git rev-parse --show-toplevel 2> /dev/null)
2222

23-
if [[ ! "$GIT_ROOT" =~ /nowinandroid$ ]]; then
24-
echo -e "${RED}ERROR:${NC} Please run this script from the cloned nowinandroid directory."
25-
exit 1
26-
fi
27-
2823
echo "Installing git commit-message hook"
2924
echo
3025
curl -sSLo "${GIT_DIR}/hooks/commit-msg" \

0 commit comments

Comments
 (0)