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

Re: Switch from svn to git and modify repo completely

From
Jonathan Nieder <jrnieder@gmail.com>
Date
Nov 21, 2011, 07:02 UTC
Message-ID
<20111121070247.GA16708@elie.hsd1.il.comcast.net>
In-Reply-To
<4EC97D52.1010308@fechner.net>

(re-populating cc list) Hi Matthias,

Matthias Fechner wrote:
Show 10 quoted lines
> git told me:
> Ref 'refs/heads/master' was rewritten
> Ref 'refs/remotes/origin/master' was rewritten
> WARNING: Ref 'refs/remotes/origin/master' is unchanged
>
> 3. I cloned the repository with:
> git clone --no-hardlinks repo-orig.git repo-filtered.git
>
> 4. After this I verified in the repo-filtered.git that the file was
> really completely removed, but it was not the case.

The section "CHECKLIST FOR SHRINKING A REPOSITORY" from the git-filter-branch(1) manual page has some hints. In particular, "git clone --no-hardlinks" still _copies_ all objects --- you probably would want "git clone file://$(pwd)/repo-orig" to make sure the ordinary transfer negotiation kicks in.

It's very important that the documentation not be misleading, so if you can point to places where the wording can be less confusing, that would be very welcome.

Thanks and hope that helps, Jonathan

Previous: Matthias FechnerNext: Matthias Fechner
Message 4 of 6 in “Switch from svn to git and modify repo completely”
  1. Matthias FechnerNov 19, 2011
  2. Alexey ShumkinNov 19, 2011
  3. Matthias FechnerNov 20, 2011
  4. Jonathan NiederNov 21, 2011
  5. Matthias FechnerNov 27, 2011
  6. Matthias FechnerNov 28, 2011

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.