crisward / dokku-clone

a dokku plugin for building an app from a cloned git repo
48 stars 9 forks source link

Clone specific commit #11

Closed danielepolencic closed 7 years ago

danielepolencic commented 7 years ago

Hi,

Is it possibile to clone a specific commit? I noticed that the suggestion was raised in https://github.com/crisward/dokku-clone/issues/3 but not implemented.

crisward commented 7 years ago

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...

danielepolencic commented 7 years ago

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?

crisward commented 7 years ago

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

crisward commented 7 years ago

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

danielepolencic commented 7 years ago

Also it will utilise more disk space.

crisward commented 7 years ago

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.

crisward commented 7 years ago

Thanks again!

danielepolencic commented 7 years ago

You're welcome!