coder / sail

Deprecated: Instant, pre-configured VS Code development environments.

Home Page:https://sail.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Allow customization of git clone command

teddy-codes opened this issue · comments

commented

I have 2FA on, which requires ssh keys. I have this setup within my sshconfig. Is there any way that we would change this to put a structured string like so: git clone github:%v in the ~/.config/sail/sail.toml file? Of course, the %v would be replaced with the repo that is being run.

commented

Note: This would also solve #156

By default sail clones via ssh, so if you were to run sail run cdr/sail, it will expand the clone command to:
git clone ssh://git@github.com/cdr/sail.git

commented

For me, it needs to be ssh://github:cdr/sshcode

commented

of course, I can simply change it but just thought that customization of the command would be good (so I did not have to).

commented

I changed it. I still think that it is good for non-github users for example. re: #128

Edit:
Will move conversation there.

This is already configurable via the default_host key in the config