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

Re: [StGIT PATCH 2/2] Don't touch ref files manually

From
Karl Hasselström <kha@treskal.com>
Date
Aug 21, 2007, 16:09 UTC
Message-ID
<20070821160904.GB16221@diana.vm.bytemark.co.uk>
In-Reply-To
<20070821155845.GA16221@diana.vm.bytemark.co.uk>
On 2007-08-21 17:58:45 +0200, Karl Hasselström wrote:
Show 27 quoted lines
> On 2007-08-21 14:23:29 +0100, Catalin Marinas wrote:
>
> > On 10/08/07, Karl Hasselström <kha@treskal.com> wrote:
> >
> > > diff --git a/t/t1000-branch-create.sh b/t/t1000-branch-create.sh
> > > index cca5504..e920e93 100755
> > > --- a/t/t1000-branch-create.sh
> > > +++ b/t/t1000-branch-create.sh
> > > @@ -13,26 +13,9 @@ Exercises the "stg branch" commands.
> > >  stg init
> > >
> > >  test_expect_success \
> > > -    'Create a spurious refs/patches/ entry' '
> > > -    find .git -name foo | xargs rm -rf &&
> > > -    touch .git/refs/patches/foo
> >
> > I haven't tried this test but is there any problem if we keep
> > them?
>
> Yes.
>
> This test started to fail after my change. I don't remember exactly,
> but I think it was git-symbolic-ref actually reading the file,
> finding no ref there, and ignoring it. So this empty file didn't
> mess up the machinery anymore, and since this isn't a common usecase
> anyway, and since this change is to rely on git for all the
> low-level ref manipulation, I just deleted the test.

BTW, I just saw that this was explained by the second bullet point in the commit message. :-)

-- 
Karl Hasselström, kha@treskal.com
      www.treskal.com/kalle
Previous: Karl HasselströmNext: Johannes Sixt
Message 6 of 11 in “Teach StGIT to survive git-gc”
  1. 0/2 Teach StGIT to survive git-gcKarl Hasselström, Aug 10, 2007
  2. 1/2 New test: make sure that StGIT can handle packed refsKarl Hasselström, Aug 10, 2007
  3. 2/2 Don't touch ref files manuallyKarl Hasselström, Aug 10, 2007
  4. Catalin MarinasAug 21, 2007
  5. Karl HasselströmAug 21, 2007
  6. Karl HasselströmAug 21, 2007
  7. Johannes SixtAug 21, 2007
  8. Karl HasselströmAug 21, 2007
  9. Karl HasselströmAug 21, 2007
  10. Karl HasselströmAug 21, 2007
  11. Catalin MarinasAug 23, 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.