Commit bb2c2b7
committed
fix: default project_root to cwd when repo_url is provided
Fixes #318
When DagsHubFilesystem is created with a repo_url but without
project_root, and the current directory is not inside a git repo,
the constructor now defaults project_root to the current working
directory instead of raising a ValueError.
Made-with: Cursor1 parent 474f305 commit bb2c2b7
1 file changed
Lines changed: 9 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
132 | 135 | | |
133 | 136 | | |
134 | 137 | | |
| |||
0 commit comments