Handle 'HEAD' case when checking if commit is up to date

This commit is contained in:
Alexandre Aubin 2018-05-26 18:21:30 +02:00
parent a078ad3aeb
commit 50fe2547a5
2 changed files with 7 additions and 2 deletions

View file

@ -64,7 +64,12 @@
<div class="col-sm-4 offset-sm-4">
<div class="card">
<div class="card-body">
{% if app.public_commit == app.master_commit %}
{% if result.app.public_commit == 'HEAD' %}
<p class="card-text text-success">
<span class="oi oi-task" aria-hidden="true"></span>
This app points to HEAD in {{ app.list.name }}.json !
</p>
{% elif app.public_commit == app.master_commit %}
<p class="card-text text-success">
<span class="oi oi-task" aria-hidden="true"></span>
Master commit is up to date with {{ app.list.name }}.json !

View file

@ -86,7 +86,7 @@
aria-hidden="true"
title="This test is outdated : a more recent commit exists in master than the one tested."></span>
{% endif %}
{% if result.app.public_commit != result.app.master_commit %}
{% if result.app.public_commit != 'HEAD' and result.app.public_commit != result.app.master_commit %}
{% if result.app.public_vs_master_time_diff > 60 %}
<span class="oi oi-warning text-danger"
{% else %}