Skip to content

Commit 40661ed

Browse files
committed
fixed keys() implementation for #11 when using SVN < 1.7
1 parent e0c1b46 commit 40661ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/TQ/Vcs/Gaufrette/Adapter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ public function keys()
130130
$keys = array();
131131
foreach ($iterator as $file) {
132132
$path = $this->repository->resolveLocalPath($file);
133-
if (strpos($path, '.') === 0) {
133+
if (preg_match('~\.(?:svn|git)~i', $path)) {
134134
continue;
135135
}
136136
$keys[] = $key = $path;

0 commit comments

Comments
 (0)