aboutsummaryrefslogtreecommitdiffstats
path: root/test/scripts/git_pull_or_clean.sh
diff options
context:
space:
mode:
Diffstat (limited to 'test/scripts/git_pull_or_clean.sh')
-rwxr-xr-xtest/scripts/git_pull_or_clean.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/scripts/git_pull_or_clean.sh b/test/scripts/git_pull_or_clean.sh
new file mode 100755
index 00000000..489091f9
--- /dev/null
+++ b/test/scripts/git_pull_or_clean.sh
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+git pull | grep -q -v 'Already up-to-date.' || git clean -dfX */