crisward / dokku-clone

a dokku plugin for building an app from a cloned git repo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Clone specific commit

danielepolencic opened this issue · comments

Hi,

Is it possibile to clone a specific commit? I noticed that the suggestion was raised in #3 but not implemented.

No, not at the moment... happily accept a well crafted, thoroughly tested pull request though... 😉
Or you could use tags / branches to get what you need, though it would involve messing with your repo...

I'm thinking that perhaps I could use a ref. However, I can still submit a PR for this.

If I decide to enable clone for specific commits, I'd need to clone the entire repo and not just one single commit. Are you happy with that?

As far as I'm aware (it's been a while since I wrote this), but it clones the entire repo.

Ah, wrong, it has --depth=1 on it... It won't break anything, but may be slower?

Also it will utilise more disk space.

It gets clones to a temp directory, then the temp directory gets deleted. So only a minor issue, well I suppose that depends on your repo.

Thanks again!

You're welcome!