Re: Can I fetch an arbitrary commit by sha1?
- From
- David Lang <david@lang.hm>
- Date
- Oct 6, 2014, 18:28 UTC
- Message-ID
- <alpine.DEB.2.02.1410061127080.26324@nftneq.ynat.uz>
- In-Reply-To
- <CACh33FpWPuyJRryf6hzbAkqWJMwzz1mLLDDRxEQ0niT2CznTRg@mail.gmail.com>
On Mon, 6 Oct 2014, Patrick Donnelly wrote:
Show 7 quoted lines
> There are efforts in the scientific communities at preserving > experimental software and results. One of the things we'd like to do > is shallow clone a specific sha1 commit from e.g. GitHub. [I think > GitHub has this disabled though? I haven't been able to get it to > work.] I guess this feature was a step in the right direction but it's > not usable AFAIK. Tags are not really suitable as they could change > and there are possible namespace issues.
remember that git != github and it's not hard to run your own git server.
if you sign tags, they should be very stable. You do have the namespace issue, but unless you have a lot of different people tagging in the same repository, that shouldn't be an issue (and if you do, can't you use the person's name as part of the tag?)
David Lang