Custom Instructions for Repository Cloning

Resolved 💬 5 comments Opened Sep 8, 2025 by joel Closed Nov 28, 2025
💡 Likely answer: A maintainer (willwang-openai, contributor) responded on this thread — see the highlighted reply below.

What feature would you like to see?

ChatGPT Codex is unable to clone our repository, which is understandable given that our repository is cluttered with binaries, which makes it super tricky to use CODEX.

To address this, I use a custom cloning command like the following:

git clone --depth=1 --single-branch git@github.com:xxx/yyy.git "${REPO_PATH}"

It would be nice to have a method for providing specific instructions for cloning or optimising the general cloning process.

Are you interested in implementing this feature?

_No response_

Additional information

_No response_

View original on GitHub ↗

5 Comments

willwang-openai contributor · 11 months ago

Hi @joel. Am I understanding correctly that your repo is too large to be cloned and thus you are requesting a --depth and --single-branch option?

willwang-openai contributor · 11 months ago

Does the repository always fail to clone or is it just slow. The latter should be better with out caching mechanism. Do you use LFS?

joel · 11 months ago

Yes, indeed, it's always time out:

<img width="709" height="240" alt="Image" src="https://github.com/user-attachments/assets/1dba0111-6709-475c-a790-bcf8789d8081" />

joel · 11 months ago

@willwang-openai, we do not use Git Large File Storage, as I didn't know about it. It seems a possible remediation, though. I'm going to explore this possibility. Cheers.

etraut-openai contributor · 9 months ago

This feature request hasn't received any further upvotes or comments in about three months, so I'm going to close it.