Vote #70802
未完了Specify a specifc branch in a reference
0%
説明
I was trying:
source:"../show?rev=vc_port"
But the ? was transformed %3F
So maybe there is another on how I can specify a branch with the source referencing?
journals
It got transformed so try this
source : "../show?rev=vc_port"
--------------------------------------------------------------------------------
Please ask your questions in forum, this tracker is for bugs and feature requests only.
BTW, you're not using the source syntax adequately, see "wiki syntax help page":/help/wiki_syntax.html (use e.g. source:/branches/1.2-stable/README.rdoc).
--------------------------------------------------------------------------------
SPAM
--------------------------------------------------------------------------------
Sorry I wasn't clear enough, but with my git repository it doesn't work the syntax you are suggesting.
For example in my case I would be able to do
source:/branches/vc_port/README.txt
It opens the link but I get the following error:
<pre>
404
The entry or revision was not found in the repository.
Back
</pre>
--------------------------------------------------------------------------------
The forum entry for this seems to be "Link to respository file on branch":http://www.redmine.org/boards/2/topics/22548.
However, there currently is no solution to link to a file in a specific git branch.
--------------------------------------------------------------------------------
I found the solution to link to a file in a specific branch of the linked git repository:
<pre>
source:"../revisions/branch_name/entry/path/to/the/file"
</pre>
Simply replace branch_name by the name of the specific branch and replace the path of the file at the end.
You *must* put the quotes around the path, otherwise the .. will not be parsed correctly.
--------------------------------------------------------------------------------