git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Clone a repository with only the objects needed for a single tag

From
BLBen 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.
>
Previous: Andreas EricssonNext: Junio C Hamano
Message 5 of 6 in “Clone a repository with only the objects needed for a single tag”
  1. Ben LauNov 2, 2005
  2. Junio C HamanoNov 2, 2005
  3. Ben LauNov 2, 2005
  4. Andreas EricssonNov 2, 2005
  5. Ben LauNov 2, 2005
  6. Junio C HamanoNov 2, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.