Skip to content

Commit c750328

Browse files
authored
fix: correctly handle UNC paths (#657)
Closes #645
2 parents 9b9b8e0 + 6328c83 commit c750328

File tree

3 files changed

+14
-1
lines changed

3 files changed

+14
-1
lines changed

docs/development/testing.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,6 @@ Every time you edit the profiles stored in the `examples` folder, don't forget t
5656
```sh
5757
git commit examples/ -m "wip"
5858
QGIS_CUSTOM_CONFIG_PATH=tests/fixtures/tmp/ qdt -vv -s scenario.qdt.yml
59+
# On Windows PowerShell
60+
# $env:QGIS_CUSTOM_CONFIG_PATH="tests/fixtures/tmp/"; qdt -vv -s .\scenario.qdt.yml
5961
```

docs/jobs/profiles_downloader.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,17 @@ See this guide on [how to generate the qdt-files.json](../usage/profile.md#gener
4747
source: file:///home/jmo/Git/Geotribu/profils-qgis
4848
```
4949

50+
With repository on [UNC path](https://en.wikipedia.org/wiki/Path_(computing)#Uniform_Naming_Convention):
51+
52+
```yaml
53+
- name: Download profiles from Git repository stored on a local and "hidden" network drive
54+
uses: qprofiles-downloader
55+
with:
56+
branch: main
57+
protocol: git_local
58+
source: file://\\srv-01\QDT$
59+
```
60+
5061
----
5162

5263
## Vocabulary

qgis_deployment_toolbelt/profiles/profiles_handler_base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ def _clone(self, local_path: Path) -> Repo:
505505

506506
if self.SOURCE_REPOSITORY_TYPE in ("git_local", "local"):
507507
with porcelain.open_repo_closing(
508-
path_or_repo=self.SOURCE_REPOSITORY_PATH_OR_URL
508+
path_or_repo=self.SOURCE_REPOSITORY_PATH_OR_URL.as_posix()
509509
) as repo_obj:
510510
repo_obj.clone(
511511
target_path=f"{local_path.resolve()}",

0 commit comments

Comments
 (0)