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

Re: Tracking a branch using StGIT

From
Jakub Narebski <jnareb@gmail.com>
Date
Sep 15, 2006, 11:42 UTC
Message-ID
<eee3i5$ib6$1@sea.gmane.org>
In-Reply-To
<64de5c8b0609150432o5d6835a8pb578082746576864@mail.gmail.com>
Rajkumar S wrote:
Show 37 quoted lines
> On 9/15/06, Catalin Marinas <catalin.marinas@gmail.com> wrote:
> 
>> After StGIT pops all the patches, it just calls "git pull origin". My
>> understanding of GIT is that this should update local RELENG_1 with
>> the remote RELENG_1 from the "origin" repository. Anything wrong with
>> my assumptions?
> 
> I checked this again, this time with out using stgit, and the results
> are the same. So this is not a StGIT problem but a user error :(
> 
> My sequence of test is as follows:
> 
> # root@beastie:# git clone /usr/local/pfSense/upstream/pfSense/ releng_1
> <snip>
>  100% (1220/1220) done
> # cd releng_1/
> 
> # cat .git/remotes/origin
> 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
> 
> # git branch
>   Package-Reorg-2005
>   RELENG_1
>   avendor
> * master
>   origin
> 
> # git pull
> Already up-to-date.
> 
> # git checkout RELENG_1
> 
> # git pull
[...]
> 
> As you can see, when I switched to RELENG_1 branch and did a git pull,
> I am getting errors. I am wondering where I am wrong.

git pull is git fetch + merge of first head in remotes file with _current_ branch.

You'd better git fetch if you are on RELENG_1 branch (if you are not on master), then git checkout master && git pull . origin

-- 
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git
Previous: Rajkumar SNext: Rajkumar S
Message 7 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.