mirror of
https://github.com/langgenius/dify.git
synced 2026-09-08 11:04:27 +08:00
19 lines
433 B
Bash
Executable File
19 lines
433 B
Bash
Executable File
#!/bin/sh
|
|
set -eu
|
|
|
|
git_path() {
|
|
git rev-parse --git-path "$1"
|
|
}
|
|
|
|
if [ -f "$(git_path MERGE_HEAD)" ] || \
|
|
[ -f "$(git_path CHERRY_PICK_HEAD)" ] || \
|
|
[ -f "$(git_path REVERT_HEAD)" ] || \
|
|
[ -f "$(git_path SQUASH_MSG)" ] || \
|
|
[ -d "$(git_path rebase-merge)" ] || \
|
|
[ -d "$(git_path rebase-apply)" ]; then
|
|
echo "Git operation in progress, skipping staged checks; CI validates the result."
|
|
exit 0
|
|
fi
|
|
|
|
vp staged
|