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

Re: stg branch --delete doesn't work

From
Karl Hasselström <kha@treskal.com>
Date
Sep 21, 2007, 09:48 UTC
Message-ID
<20070921094830.GB26307@diana.vm.bytemark.co.uk>
In-Reply-To
<cc723f590709202140y677a17d0y504b8cfa8b66606b@mail.gmail.com>
On 2007-09-21 10:10:45 +0530, Aneesh Kumar wrote:
Show 12 quoted lines
> [review@linux-review-ext4]$ git checkout master
> Switched to branch "master"
> [master@linux-review-ext4]$ stg branch --delete --force review
> Deleting branch "review" ...
> fatal: Needed a single revision
> stg branch: refs/heads/review does not exist
>
> And it leaves in .git/config
> [branch "test2.stgit"]
>         stackformatversion = 2
>
> So a later stg init also fails.
Ow! You'd think we'd have a test for that ...
-- 
Karl Hasselström, kha@treskal.com
      www.treskal.com/kalle
Previous: Aneesh KumarNext: Karl Hasselström
Message 2 of 7 in “stg branch --delete doesn't work”
  1. Aneesh KumarSep 21, 2007
  2. Karl HasselströmSep 21, 2007
  3. 0/4 Fix "stg branch --delete"Karl Hasselström, Sep 22, 2007
  4. 1/4 Don't special-case the "master" branch during branch deleteKarl Hasselström, Sep 22, 2007
  5. 2/4 Don't try to delete the branch twiceKarl Hasselström, Sep 22, 2007
  6. 3/4 Properly remove all config for a deleted branchKarl Hasselström, Sep 22, 2007
  7. 4/4 Add simple test for "stg branch --delete"Karl Hasselström, Sep 22, 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.