Skip to content

Setting multi-valued keys in git clone task #68

@joeshannon

Description

@joeshannon

Discussed in https://github.com/orgs/eclipse-oomph/discussions/67

Originally posted by joeshannon February 13, 2024
Hi,
We have configuration in our git clone tasks to add additional ref spec to a particular origin (for Gerrit purposes), it looks like:
image

A couple of weeks ago developers started noticing that the "Fetch from Gerrit..." option was not available anymore for newly provisioned workspaces. In the new git clones, only the first fetch refspec is added to the git repository config file instead of both of them. To be explicit, the relevant section in the config file looks like:

[remote "origin"]
	url = ssh://gerrit:29418/repo
	fetch = +refs/heads/*:refs/remotes/origin/*
	pushurl = ssh://gerrit:29418/repo
	push = HEAD:refs/for/main

Instead of:

[remote "origin"]
	url = ssh://gerrit:29418/repo
	fetch = +refs/heads/*:refs/remotes/origin/*
	fetch = refs/notes/*:refs/notes/*
	pushurl = ssh://gerrit:29418/repo
	push = HEAD:refs/for/main

I noted that there have been some changes to the git Oomph plugins recently so was wondering how we might achieve the previous behaviour?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions