diff options
author | Kia Mei Somabes <kssomabes@up.edu.ph> | 2018-07-20 16:13:29 +0800 |
---|---|---|
committer | Kia Mei Somabes <kssomabes@up.edu.ph> | 2018-07-20 16:13:29 +0800 |
commit | 11d56a1551e2b5d57656433f912a4dec1cee3008 (patch) | |
tree | e46a496ed8a187bd5b703f75863812406b4e0d33 /config/routes | |
parent | 0ed8f3490e037d451841ec0e6fe226b9e62e8466 (diff) | |
download | gitlab-ce-11d56a1551e2b5d57656433f912a4dec1cee3008.tar.gz |
Redirect commits to root_ref if no ref is provided
Diffstat (limited to 'config/routes')
-rw-r--r-- | config/routes/repository.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/config/routes/repository.rb b/config/routes/repository.rb index e2bf8d6a7ff..87101a69bba 100644 --- a/config/routes/repository.rb +++ b/config/routes/repository.rb @@ -83,6 +83,7 @@ scope format: false do get '/raw/*id', to: 'raw#show', as: :raw get '/blame/*id', to: 'blame#show', as: :blame + get '/commits/', to: 'application#redirect_commits_root', as: :commits_root get '/commits/*id/signatures', to: 'commits#signatures', as: :signatures get '/commits/*id', to: 'commits#show', as: :commits |