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 |
Accepted answer
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
Comments
Michael Ricketts
commented Nov 18 '14, 10:05 a.m.
Perfect, thank you!
Nope, just these two for now!
Vince Thyng
commented Apr 21 '15, 12:36 a.m.
Is this documented anywhere? I have looked through the 5.0 through 6.0 docs trying to find this info.
|
One other answer
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 |
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.