Repository that's in the base directory of another repository doesn't initialise properly
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zuul |
New
|
Undecided
|
Unassigned |
Bug Description
We have a set of repositories like this in Gerrit:
wikimedia/
wikimedia/
wikimedia/
The latter two had jobs configured for them first, so they got cloned properly into zuul/git/
If this is actually the issue, then Zuul should probably be checking for the existence of a .git directory before it runs git commands - if it's not, the error I'm seeing is this:
2013-10-03 23:08:49,328 ERROR zuul.Merger: Unable to update wikimedia/
Traceback (most recent call last):
File "/usr/local/
repo.update()
File "/usr/local/
origin = self.repo.
File "/usr/lib/
return list.__
AttributeError: 'IterableList' object has no attribute 'origin'
Wikimedia bug https:/ /bugzilla. wikimedia. org/show_ bug.cgi? id=55896
Potentially Zuul could look for .git, if it is not there, create the directory and do a git clone --bare there, eventually checkout the branch in the workspace.
The way I fixed it:
cd wikimedia/ fundraising/ crm :29418/ wikimedia/ fundraising/ crm
git remote add origin ssh://<email address hidden>
git checkout master
For some reason I also had to git remote set-head origin -a
That properly created the issue. IMHO that is not very important, it is really a corner case.