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
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
$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
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