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

Re: stgit: lost all my patches again

From
Karl Hasselström <kha@treskal.com>
Date
Oct 4, 2007, 17:29 UTC
Message-ID
<20071004172930.GC21717@diana.vm.bytemark.co.uk>
In-Reply-To
<20071004154508.GA15424@old.davidb.org>
On 2007-10-04 08:45:08 -0700, David Brown wrote:
Show 12 quoted lines
> On Thu, Oct 04, 2007 at 10:33:04AM +0200, Karl Hasselström wrote:
>
> > > I did the 'stg refresh' from a directory that was not being
> > > tracked by git. It is in the .gitignore list. This appears to be
> > > the root of the problem.
> >
> > Mmmph. This is not the only StGit command that's apparently not
> > safe to run from a subdirectory. See e.g.
> > https://gna.org/bugs/?9986.
>
> I get an "Error: This item is private" from that page, so I'm not
> sure what that is.

Bleh. For some reason that bug was marked "private" (possibly because it was posted anonymously), and I didn't realize because _I_ could read it just fine ... Sorry about that; I've made it public now.

> Just yesterday, I had 'stg push' empty out my patches when I ran it
> from a subdirectory. Fortunately, in this case, the old versions
> were in the log, but I can imagine someone less familiar with what
> git and stgit are doing not knowing how to recover this.

Yep. I hadn't really realized how bad this was, because I always run stg from the root dir. Wonder how I picked up that habit? ;-)

Thanks for the report.
-- 
Karl Hasselström, kha@treskal.com
      www.treskal.com/kalle
Previous: David Brown
Message 7 of 7 in “stgit: lost all my patches again”
  1. Jon SmirlOct 4, 2007
  2. Karl HasselströmOct 4, 2007
  3. Jon SmirlOct 4, 2007
  4. Jon SmirlOct 4, 2007
  5. Karl HasselströmOct 4, 2007
  6. David BrownOct 4, 2007
  7. Karl HasselströmOct 4, 2007

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.