Re: Is there a way to fetch commits that are detached
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Apr 24, 2012, 22:15 UTC
- Message-ID
- <xmqq62cog4iz.fsf@junio.mtv.corp.google.com>
- In-Reply-To
- <CA+jCPNcmcxQcSN_BNvigQa2uRiaw-c2PK5T-y1yacYNs6Ws4WA@mail.gmail.com>
Allan Caffee <allan.caffee@gmail.com> writes:
> Is there a way to explicitly fetch whatever objects are necessary to checkout > the commit?
One security principle built into git is that any object that is unreachable from refs/* is not to be exposed to outside world. If the commit is not on any ref, you shouldn't be able to obtain it remotely.
So you need to know which branch (or it could be a tag) the commit you want is on, fetch that branch or tag and then check the commit out.