StGit: Notice: no parent remote declared for stack

2 messages, 2 authors, 2016-06-15 · open the first message on its own page

StGit: Notice: no parent remote declared for stack

From: Rajkumar S <hidden>
Date: 2016-06-15 22:43:06

Hi,

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

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 ? a sample command would be very helpful as I am not very much upto
speed with git repo-config

raj

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

From: Yann Dirson <hidden>
Date: 2016-06-15 22:43:09

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:
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.
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.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help