Adding new projects to repo

1,878 views
Skip to first unread message

Aravind

unread,
Sep 21, 2009, 11:12:58 AM9/21/09
to Repo and Gerrit Discussion
Hello All

I have a situation to add new folders under external.
I am trying to add new folders, make a git repo out of it, add the new
entry into manifest.xml and expect it to sync via repo.

But when i do the above and do a repo sync i get a error

error: refs/remotes/m/<remote branch name> points nowhere!

Any idea what am i doing wrong here?
or is there a procedure or how to add new projects to repo?

regards
Aravind

Amit Pandey

unread,
Sep 25, 2009, 7:05:40 AM9/25/09
to Repo and Gerrit Discussion
Hi,

I am also facing a similar problem.

My query is where do we need to add entry for a new git repository to
be a part of repo?

- do I need to modify the default.xml?
- do I need to unlink the manifest.xml and modify it?
- do I need to modify the projects.list?
- do I need to clone a bare git repo of my git repo inside .repo/
projects/?

I have tried all of the possible permutations and as usual nothing
seems to work, so finally posting this query in forum.

I just wanted to see my newly added git repo to be shown while
executing "repo forall -c 'pwd'"

TIA

Regards,
Amit Pandey

On Sep 21, 8:12 pm, Aravind <amahi...@gmail.com> wrote:
> Hello All
>
> I have a situation toaddnew folders under external.
> I am trying toaddnew folders, make agitrepoout of it,addthe new
> entry into manifest.xml and expect it to sync viarepo.
>
> But when i do the above and do areposync i get a error

Anthony

unread,
Sep 25, 2009, 4:29:33 PM9/25/09
to Repo and Gerrit Discussion
The newer versions of Gerrit have a createproject command:
http://gerrit.googlecode.com/svn/documentation/2.0/project-setup.html

I don't know how much it does for you though.

For older versions of Gerrit, you need to add an entry into the
branches table, projects table, and create an empty git repository on
your server.

Then, edit .repo/manifests/manifest.xml to tell it where to check out
to. Symlink this to .repo/manifest.xml

Amit Pandey

unread,
Sep 29, 2009, 1:13:58 AM9/29/09
to Repo and Gerrit Discussion
Thanks for the response.

I think, I didn't clearly state the issue I am facing.

I had synced android using repo tool, so then my android consisted of
112 projects.
Then I started development on top of those 112 projects and now I have
added 1 more git project in android.

So, repo tool is not allowing me to add this to android.

I wish to run the repo sync, but prior to that my freshly added git
repository in android should be visible in the output of "repo forall -
c 'pwd' "

When, I run this command, it gives me an exception as below:

*************************************************************************************
Traceback (most recent call last):
File "/data/ccase11/android_git/android/.repo/repo/main.py", line
235, in ?
_Main(sys.argv[1:])
File "/data/ccase11/android_git/android/.repo/repo/main.py", line
217, in _Main
repo._Run(argv)
File "/data/ccase11/android_git/android/.repo/repo/main.py", line
123, in _Run
cmd.Execute(copts, cargs)
File "/data/ccase11/android_git/android/.repo/repo/subcmds/
forall.py", line 163, in Execute
setenv('REPO_LREV', project.GetRevisionId())
File "/data/ccase11/android_git/android/.repo/repo/project.py", line
622, in GetRevisionId
rev = rem.ToLocal(self.revisionExpr)
File "/data/ccase11/android_git/android/.repo/repo/git_config.py",
line 520, in ToLocal
raise GitError('remote %s does not have %s' % (self.name, rev))
error.GitError: remote korg does not have refs/heads/master
*************************************************************************************

Then, I found that repo tool sets a default remote as "korg" in the
start.
But, I'm not able to get through it.

So, in short, I wish to add a new directory to my android repo, which
gets recognized by repo tool (which ain't happening now! :( )

TIA

Regards,
Amit
Reply all
Reply to author
Forward
0 new messages