Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

What is the format of the "Commit URI Format:" field when registering a git repository with RTC?

Hi

We have RTC 5.0.1 installed, and are trying to use git for source control.  I've successfully registered our git (actually, gitlab) server with RTC, and things are generally working.  Git commits are correctly associated with workitems, but the links displayed in RTC don't work.  I think this is because the "Commit URI Format:" field on the git repository settings in RTC is not set, but I can't figure out what it needs to be.

The correct URL is something like https://<server>/commit/1faf0f7592b035a3fcf799925893e70c30a386a1

Any ideas what I need to put in the Commit URI Format field to get RTC to correctly find the commits?

Thanks

1 vote


Accepted answer

Permanent link
You can put the following:
$repo/commit/$sha1

where in $repo is replaced by the Git Repository URL as mentioned while registering
and, $sha1 is replaced by the commit hash id

Michael Ricketts selected this answer as the correct answer

3 votes

Comments

Perfect, thank you!
Are there any other $xxx variables that get expanded (just for interest)?

Nope, just these two for now! 

Is this documented anywhere?  I have looked through the 5.0 through 6.0 docs trying to find this info.


One other answer

Permanent link

Hello,

I am doing a Git-RTC integration and everything is looking fine but when I click on the Link created on the RTC -> WorkItem -> Change Sets (Remote) -> Link -> Comments with WorkItem xxx

I got following error:

Error occured when fetching commit summary for commit id  xxxxxxxxxxxxx12345xxxxxxxxxxxxxxxxxx

and no change set is displayed.

Could you plz. support?

thx

Adel

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 6,126
× 97

Question asked: Nov 17 '14, 11:25 a.m.

Question was seen: 6,272 times

Last updated: Sep 01 '15, 7:55 a.m.

Confirmation Cancel Confirm