tests: test-vc-list-files-git.sh: skip if git is not available
authorJim Meyering <meyering@redhat.com>
Tue, 28 Aug 2012 11:49:37 +0000 (13:49 +0200)
committerJim Meyering <meyering@redhat.com>
Tue, 28 Aug 2012 11:49:37 +0000 (13:49 +0200)
* tests/test-vc-list-files-git.sh: Skip this test when git is
not available.

ChangeLog
tests/test-vc-list-files-git.sh

index 274db3d..134cf97 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2012-08-28  Jim Meyering  <meyering@redhat.com>
+
+       tests: test-vc-list-files-git.sh: skip if git is not available
+       * tests/test-vc-list-files-git.sh: Skip this test when git is
+       not available.
+
 2012-08-26  Bruno Haible  <bruno@clisp.org>
 
        gnulib-tool: Remove no-op option --no-changelog.
index 1ea6d89..dba30f2 100755 (executable)
@@ -19,6 +19,8 @@
 : ${srcdir=.}
 . "$srcdir/init.sh"; path_prepend_ "$abs_aux_dir" .
 
+git --version || skip_ git required
+
 tmpdir=vc-git-$$
 GIT_DIR= GIT_WORK_TREE=; unset GIT_DIR GIT_WORK_TREE