Indefero

Indefero Commit Details


Date:2009-01-21 12:56:47 (15 years 11 months ago)
Author:Loic d'Anterroches
Branch:dev, develop, feature-issue_links, feature.better-home, feature.content-md5, feature.diff-whitespace, feature.download-md5, feature.issue-links, feature.issue-of-others, feature.issue-summary, feature.search-filter, feature.webrepos, feature.wiki-default-page, master, release-1.1, release-1.2, release-1.3
Commit:3fbac71f04f414fff537ed1f021ee7b1b1418a86
Parents: 49c8510d31e6df679c3b03a5eb7dcf013ba85ab1
Message:Fixed to redirect the user to the home if no available branch.

This is a short term fix. We need to create a "howto" page for each kind
of repository to display it when the user want to access a repository
with nothing in it.
Changes:

File differences

src/IDF/Views/Source.php
8080
8181
8282
83
84
85
86
87
88
8389
8490
8591
$scm = IDF_Scm::get($request->project);
$commit = $match[2];
$branches = $scm->getBranches();
if (count($branches) == 0) {
// Redirect to the project home
$url = Pluf_HTTP_URL_urlForView('IDF_Views_Project::home',
array($request->project->shortname));
return new Pluf_HTTP_Response_Redirect($url);
}
if ('commit' != $scm->testHash($commit)) {
// Redirect to the first branch
$url = Pluf_HTTP_URL_urlForView('IDF_Views_Source::treeBase',

Archive Download the corresponding diff file

Page rendered in 0.07632s using 13 queries.