Re: Clone a repository with only the objects needed for a single tag
- From
- Ben Lau <benlau@ust.hk>
- Date
- Nov 2, 2005, 09:10 UTC
- Message-ID
- <436882A1.1020207@ust.hk>
- In-Reply-To
- <43687DAE.2010604@op5.se>
Andreas Ericsson wrote:
Show 13 quoted lines
> Ben Lau wrote: > >> Hi Junio, >> >> It works! Thanks a lot. >> >> However, it has a problem when involves the gitk/git-log. > > > > Both those programs use the history, which you don't have. With a > shallow repository like this some commands just won't work. git-*log > and gitk are among those.
yes, it is expected. However, I just think with a fake parent like what .git/info/grafts could provide may solve the issue. At least it make git-log be happy to show the only log message in the shallow repository without any error. The rest of problem is gitk could not show any item like what git-log shown.
I am not sure is it right to have a pair of same ID into .git/info/grafts or it should be solved by a little patch to gitk.
Show 15 quoted lines
> >> >> git-log/gitk do not complains afterward, but it also make gitk shows >> nothing during run. Any solution? >> > > * Get a second machine with more disk-space and run the history tools > there. If you use it as mothership and push your commits to it you'll > be able to track your changes from the laptop as well. > > * Get a larger disk. They're not terribly expensive now adays. > > * Check out one tag (i.e. release) more than you need. Then you'll get > history back to that tag. >