Skip to content

Commit f9d7f64

Browse files
committed
update git extension guides
1 parent b0e8e1e commit f9d7f64

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/recipes/virtual-file-system.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ e.g. `s3://AKIAIOSFODNN7EXAMPLE:wJalrXUtnFEMI/K7MDENG/[email protected]
299299

300300
## GIT
301301

302-
Access GitHub repositories as a filesystem - map webroot directly to a repo. Files cached locally, changes auto-detected.
302+
Access Git repositories as a filesystem - map webroot directly to a repo. Files cached locally, changes auto-detected. Read-only.
303303

304304
### Credentials
305305

@@ -317,26 +317,26 @@ Or system properties: `-Dlucee.git.username`, `-Dlucee.git.password`
317317
```lucee
318318
this.git.username = "whatever";
319319
this.git.password = "qwerty";
320-
this.git.repository = "lucee-examples";
320+
this.git.repository = "https://github.com/lucee/lucee-examples";
321321
this.git.branch = "master";
322322
```
323323

324324
Usage:
325325

326326
```lucee
327-
dir = directoryList("git:///path/inside/git");
327+
dir = directoryList("git:///path/inside/repo");
328328
```
329329

330330
Credentials can't be in the path (security), but branch and repository can:
331331

332332
```lucee
333-
dir = directoryList("git://master@/path/inside/git!lucee-examples");
333+
dir = directoryList("git://master@github.com/lucee/lucee-examples!/path/inside/repo");
334334
dump(dir);
335335
```
336336

337337
### Pattern
338338

339-
`git://[{branch}@]/{path-inside-git}[!{repository}]` e.g. `git://master@/path/inside/git!lucee-examples`
339+
`git://[{branch}@][{repository}]!/{path-inside-repo}` e.g. `git://master@github.com/lucee/lucee-examples!/path/inside/repo`
340340

341341
## Video
342342

0 commit comments

Comments
 (0)