skip session-start pull on dirty working trees
This commit is contained in:
@@ -9,7 +9,11 @@ ensure_repo_root
|
|||||||
load_repo_hooks
|
load_repo_hooks
|
||||||
|
|
||||||
if git rev-parse --is-inside-work-tree >/dev/null 2>&1 && has_remote; then
|
if git rev-parse --is-inside-work-tree >/dev/null 2>&1 && has_remote; then
|
||||||
run_step "Pull latest changes" git pull --rebase
|
if git diff --quiet && git diff --cached --quiet; then
|
||||||
|
run_step "Pull latest changes" git pull --rebase
|
||||||
|
else
|
||||||
|
echo "[agent-framework] Skip pull: working tree has local changes"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if declare -F mosaic_hook_session_start >/dev/null 2>&1; then
|
if declare -F mosaic_hook_session_start >/dev/null 2>&1; then
|
||||||
|
|||||||
Reference in New Issue
Block a user