We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d09efde commit 2092a2dCopy full SHA for 2092a2d
src/gitingest/cloning.py
@@ -101,7 +101,8 @@ async def clone_repo(config: CloneConfig) -> None:
101
102
if partial_clone:
103
if config.blob:
104
- checkout_cmd += ["sparse-checkout", "set", config.subpath.lstrip("/")[:-1]]
+ # When ingesting from a file url (blob/branch/path/file.txt), we need to remove the file name
105
+ checkout_cmd += ["sparse-checkout", "set", Path(config.subpath.lstrip("/")).parent]
106
else:
107
checkout_cmd += ["sparse-checkout", "set", config.subpath.lstrip("/")]
108
0 commit comments