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

Tracking a branch using StGIT

From
RSRajkumar S <rajkumars+git@gmail.com>
Date
Sep 15, 2006, 08:20 UTC
Message-ID
<64de5c8b0609150120h3aeee6dcv976da13134396654@mail.gmail.com>
Hi,

I am using StGIT to track a branch of a remote git repository (actually a remote cvs repository, which I am tracking cvsimport)

The remote repository git branch show:
  Package-Reorg-2005
  RELENG_1
  avendor
* master
  origin
My local repository has:

root@beastie:# stg branch -l Available branches:

> s     MyBranch            | clone of "RELENG_1"
        Package-Reorg-2005  |
  s     RELENG_1            |
        avendor             |
        master              |
        origin              |
The .git/remotes/origin is
URL: /usr/local/pfSense/upstream/pfSense/.git
Pull: refs/heads/master:refs/heads/origin
Pull: refs/heads/avendor:refs/heads/avendor
Pull: refs/heads/Package-Reorg-2005:refs/heads/Package-Reorg-2005
Pull: refs/heads/RELENG_1:refs/heads/RELENG_1

My requirement is to track RELENG_1 branch with StGIT while maintaining my own patches. but when I do a stg pull the messages are:

Popping all applied patches... done Pulling from "origin"... Trying really trivial in-index merge... fatal: Merge requires file-level merging Nope. Merging HEAD with c0a06b86b8431293214f5eb18e49fcb8117c6070 Merging: 997e28966d7b7964562232628cc4f64dccbead9e Execute after commands via sh & c0a06b86b8431293214f5eb18e49fcb8117c6070 Execute after commands via sh & found 1 common ancestor(s): 1b08ecedad1e6a7199f12d1fad97373587c85454 Minor nitpick. <br> after firmware branch select box CONFLICT (add/add): File usr/local/www/status_filter_reload.php added non-identically in both branches. Adding as usr/local/www/status_filter_reload.php~HEAD and usr/local/www/status_filter_reload.php~c0a06b86b8431293214f5eb18e49fcb8117c6070 instead. <snip>

It seems StGIT is trying to merge the origin branch from remote to RELENG_1 of local. Is there a way to get RELENG_1 of remote to merge with MyBranch (clone of "RELENG_1") of local?

raj
Next: Catalin Marinas
Message 1 of 10 in “Tracking a branch using StGIT”
  1. Rajkumar SSep 15, 2006
  2. Catalin MarinasSep 15, 2006
  3. Andy WhitcroftSep 15, 2006
  4. SantiSep 15, 2006
  5. Rajkumar SSep 15, 2006
  6. Rajkumar SSep 15, 2006
  7. Jakub NarebskiSep 15, 2006
  8. Rajkumar SSep 15, 2006
  9. Jakub NarebskiSep 15, 2006
  10. Rajkumar SSep 15, 2006

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.