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 f29213c commit ee8a351Copy full SHA for ee8a351
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