* StGit: Notice: no parent remote declared for stack
@ 2007-04-20 5:20 Rajkumar S
2007-05-11 20:47 ` Yann Dirson
0 siblings, 1 reply; 2+ messages in thread
From: Rajkumar S @ 2007-04-20 5:20 UTC (permalink / raw)
To: git
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: StGit: Notice: no parent remote declared for stack
2007-04-20 5:20 StGit: Notice: no parent remote declared for stack Rajkumar S
@ 2007-05-11 20:47 ` Yann Dirson
0 siblings, 0 replies; 2+ messages in thread
From: Yann Dirson @ 2007-05-11 20:47 UTC (permalink / raw)
To: Rajkumar S; +Cc: git
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.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-05-11 20:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-20 5:20 StGit: Notice: no parent remote declared for stack Rajkumar S
2007-05-11 20:47 ` Yann Dirson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).