MAJ terminée. Nous sommes passés en version 14.6.2 . Pour consulter les "releases notes" associées c'est ici :

Commit 9d0adc42 authored by Samir Noir's avatar Samir Noir 🧀
Browse files

Fix history on versions controller when branch is not master

When the `branch` parameter is passed to the versions_controller,
a 404 is returned because g5k-api doesn't find the specified branch.
This is because of a missing concatenation with `origin/`, indeed
g5k-api's reference-repository only holds remote git references.
parent 7d53db74
Pipeline #189789 waiting for manual action with stages
in 22 minutes and 32 seconds
......@@ -17,9 +17,13 @@ class VersionsController < ApplicationController
def index
vary_on :accept; allow :get
branch = params[:branch] || 'master'
branch = ['origin', branch].join('/') unless Rails.env == 'test'
versions = repository.versions_for(
branch: params[:branch],
branch: branch,
offset: params[:offset],
limit: params[:limit]
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment