Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions scripts/githooks/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/usr/bin/env bash

chmod +x scripts/githooks/pre-commit
# Copyright © 2023 OpenIMSDK.
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
1 change: 1 addition & 0 deletions scripts/githooks/pre-commit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

#!/usr/bin/env bash
chmod +x scripts/githooks/pre-commit.sh
scripts/githooks/pre-commit.sh
chmod +x scripts/githooks/pre-commit.sh
scripts/githooks/pre-commit.sh
#!/usr/bin/env bash
Expand Down
3 changes: 2 additions & 1 deletion scripts/githooks/pre-push
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ printError() {
printf "${RED}OpenIM : $1${ENDCOLOR}\n"
}

printMessage "Running local OpenIM pre-push hook."
printMessage "Making pre-push script executable."
chmod +x scripts/githooks/pre-push

if [[ `git status --porcelain` ]]; then
printError "This scripts needs to run against committed code only. Please commit or stash you changes."
Expand Down