summaryrefslogtreecommitdiff
path: root/vcsclean
diff options
context:
space:
mode:
authorYasuo Ohgaki <yohgaki@php.net>2016-08-11 08:08:26 +0900
committerYasuo Ohgaki <yohgaki@php.net>2016-08-11 08:08:26 +0900
commita38bc7b373c85fc4413a0f194180a24ada58850d (patch)
tree4b65670a8ffc850bd288020f76109ca3a8611c5f /vcsclean
parent243d5fcb1f070025fa19a5e31a3d8d64c8d1a1e6 (diff)
downloadphp-git-a38bc7b373c85fc4413a0f194180a24ada58850d.tar.gz
Support "git worktree"
Diffstat (limited to 'vcsclean')
-rwxr-xr-xvcsclean2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcsclean b/vcsclean
index b5d201b69f..fc7fc2f805 100755
--- a/vcsclean
+++ b/vcsclean
@@ -1,6 +1,6 @@
#! /bin/sh
-if test -d '.git'; then
+if test -d '.git' -o -f '.git'; then
${MAKE:-make} -f build/build.mk gitclean-work
else
echo "Can't figure out your VCS, not cleaning."