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

Re: sadly requesting help

From
Avery Pennarun <apenwarr@gmail.com>
Date
Mar 30, 2010, 23:14 UTC
Message-ID
<32541b131003301614iad1fedfl85020ba9e285045f@mail.gmail.com>
In-Reply-To
<eaacf13c1003301543r45bb18b2n1d10d209f01e3326@mail.gmail.com>
On Tue, Mar 30, 2010 at 6:43 PM, Raymond Auge <raymond.auge@liferay.com> wrote:
Show 7 quoted lines
> I tried using:
>
> git svn reset --revision 49343
>
> where 49343 is the last revision before the failure.
>
> But I'm at git version 1.6.3.3 which doesn't support the "reset" operation.

I don't know about this option, but if it sounds like it would work, why not just upgrade your git? It's very easy (easier than most programs) to compile it from source.

Show 5 quoted lines
> I tried various incantations of
>
> git reset --hard <hash>
>
> where <hash> matched the subversion revision obtained
You probably need something like:
    git update-ref refs/remotes/git-svn <commitid>

Where "refs/remotes/git-svn" is the ref that git-svn is using (you can usually find this with "git branch -r" and then prepend refs/remotes/ to the name it gives you). And <commitid> is the commit you want to be the "most recent" one from svn.

You may or may not also need to delete your svn cache dir (.git/svn). This should be harmless since git-svn can regenerate it later by reading through your local commits.

MAKE SURE YOU BACKUP YOUR REPO BEFORE TRYING ANY OF THIS ADVICE.
Good luck,
Avery
Previous: Raymond AugeNext: Samuel Tardieu
Message 2 of 4 in “sadly requesting help”
  1. Raymond AugeMar 30, 2010
  2. Avery PennarunMar 30, 2010
  3. Samuel TardieuMar 31, 2010
  4. Fwd: sadly requesting helpRaymond Auge, Apr 2, 2010

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.