Linux SRV-16 6.18.44-paas #1 SMP PREEMPT_DYNAMIC Thu Aug 13 10:08:12 UTC 2026 x86_64
/
srv
/
admin
/
vcs
/
git
/
git-shell-commands
/
/srv/admin/vcs/git/git-shell-commands/clean
#!/bin/sh [ -z "$1" ] && exit 1 repo_path="$1" vhost=$(basename "$repo_path" .git) vhost_path="${repo_path%/vcs/git/*.git}/web/vhosts/$vhost" [ -d "$vhost_path" ] || exit 1 export GIT_WORK_TREE="$vhost_path" export GIT_DIR="$repo_path" git clean -q -f -d \ -e local \ -e node_modules \ -e vendor/bundle/ \ && echo "$vhost has been cleaned"