演示目录只保留可重建的源码。运行密钥、数据卷、依赖和带口令的本地配置不进入仓库。 Co-authored-by: Cursor <cursoragent@cursor.com>
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
|