commit | 5eb9439f9db0da0ce6fbf1c127dfc32e0b35175d | [log] [tgz] |
---|---|---|
author | Sven Selberg <svense@axis.com> | Thu Aug 06 13:51:50 2020 +0200 |
committer | Sven Selberg <svense@axis.com> | Mon Aug 24 15:36:37 2020 +0200 |
tree | 3f6b20ecd64ef1baa76fea383b0563648f6b9283 | |
parent | c143362d38be2c7b792dda6aa6ad77ced3b4a5ae [diff] |
Set correct target url for symlinks When attemting to resolv targetUrl for a symlink dirname was calculated incorrectly. After removing all trailing slashes the index of the last '/' was calculated in an effort to get the dirname part from what was before this last slash. When attempting to remove the last slash and everything after it the index was unnecesarily decremented by one which lead to a faulty targetUrl and a faulty link to the symlink target in the UI. path = "foo/bar" lastSlashIndex = 3 dirPath = "foo/bar".substring(0, 3-1) => "fo" So if symlink "./foo/bar" had target "./foo/bar.md" the link to target would be "./fo/bar.md". Gitiles Bug: https://github.com/google/gitiles/issues/144 Change-Id: I14d6631b2ba7879ca66c091b90daf18e8763f314
Gitiles is a simple repository browser for Git repositories, built on JGit. Its guiding principle is simplicity: it has no formal access controls, no write access, no fancy Javascript, etc.
Gitiles automatically renders *.md
Markdown files into HTML for simplified documentation. Refer to the Markdown documentation for details.
Gitiles is configurable in a git-style configuration file named gitiles.config
. Refer to the configuration documentation for details.
Use the issue tracker at github to file bugs.
Please refer to the Developer Guide.