Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[mylyn-reviews-dev] Change default ref mappings

Title: Change default ref mappings

Hi all,

I’m wondering if it’s possible to modify the default ref mappings which are set when a project is cloned from gerrit using the mylyn gerrit connector.

The default ref mapping (HEAD:refs/for/master) doesn’t fit our workflow because the developers are not allow to push to the master branch. Neither pushes nor reviews are allowed – so this ref mapping causes access violations when someone performs a push to upstream.

Therefore I’d like to set the default ref mappings to

refs/heads/develop:refs/heads/develop

refs/heads/feature/*:refs/heads/feature/*

Is it possible to set these ref mappings during the clone process of the repository using the mylyn gerrit connector? A script that modifies the .git/config file would be also a possible solution – but modifying the default ref mappings would be the most elegant way in my opinion.

Thanks!

Markus


Back to the top