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

Re: StGit: Notice: no parent remote declared for stack

From
Yann Dirson <ydirson@altern.org>
Date
May 11, 2007, 20:47 UTC
Message-ID
<20070511204758.GI19253@nan92-1-81-57-214-146.fbx.proxad.net>
In-Reply-To
<64de5c8b0704192220j6f5f9493md91a33f537ebb25@mail.gmail.com>

Sorry for the late answer - this mail has been stagnating in my "postponed folder".

On Fri, Apr 20, 2007 at 10:50:49AM +0530, Rajkumar S wrote:
Show 9 quoted lines
> I am following another git repository with StGit. In the remote
> repository I am following RELENG_1_2 branch.
> 
> I created the StGit repository using stg clone and then changed to
> RELENG_1_2 branch and did a stg init and edited the
> git/remotes/origin to
> 
> URL: /usr/local/upstream/.git
> Pull: refs/heads/RELENG_1_2:refs/heads/RELENG_1_2

You are not using git 1.5, are you ? 1.5 uses the new separate-remote layout, which should setup something similar for you.

Show 9 quoted lines
> 
> When I do an stg pull I get the following error:
> 
> Notice: no parent remote declared for stack "RELENG_1_2", defaulting
> to "origin". Consider setting "branch.RELENG_1_2.remote" and
> "branch.RELENG_1_2.merge" with "git repo-config".
> 
> What should I set branch.RELENG_1_2.remote and branch.RELENG_1_2.merge
> to ?

It will tell git-pull from which remote repository and branch to pull. In your case, the default remote "origin", is correct, but stgit (and git) cannot guess the branch to merge from.

> a sample command would be very helpful as I am not very much upto
> speed with git repo-config

If you have cloned this repo to work on it, I suppose what you want is a patch stack that branches off the remote RELENG_1_2 branch. git-clone will have already mirrored it locally to remotes/origin/RELENG_1_2, so you don't need to edit the remote definition to add it under refs/heads.

Here is an example, the conf for my main stgit branch, forked off Catalin's master branch. Note that "branch.master.merge" refers to the head in the remote repository, not to where it is stored locally. Also note that branch.master.stgit.pull-policy is only honored by the development version of stgit (ie. not 1.12.x).

[remote "origin"]
        url = http://homepage.ntlworld.com/cmarinas/stgit.git
        fetch = refs/heads/*:refs/remotes/origin/*
[branch "master"]
        remote = origin
        merge = refs/heads/master
[branch "master.stgit"]
        pull-policy = fetch-rebase
Best regards,
-- 
Yann.
Previous: Rajkumar S
Message 2 of 2 in “StGit: Notice: no parent remote declared for stack”
  1. Rajkumar SApr 20, 2007
  2. Yann DirsonMay 11, 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.