[Git][reproducible-builds/reproducible-notes][master] change way to check for cleaness of the working tree…

Mattia Rizzolo gitlab at salsa.debian.org
Tue Nov 6 10:13:46 CET 2018


Mattia Rizzolo pushed to branch master at Reproducible Builds / reproducible-notes


Commits:
8e415a06 by Mattia Rizzolo at 2018-11-06T09:13:38Z
change way to check for cleaness of the working tree…

Signed-off-by: Mattia Rizzolo <mattia at debian.org>

- - - - -


1 changed file:

- .gitlab-ci.yml


Changes:

=====================================
.gitlab-ci.yml
=====================================
@@ -9,4 +9,4 @@ test:
     - hooks/pre-receive
     - git clone --depth=1 https://salsa.debian.org/reproducible-builds/reproducible-misc.git misc
     - misc/clean-notes
-    - if [ "$(git status --porcelain)" != "?? misc" ]; then echo "NOTES NOT CLEAN!" ; git diff ; exit 1 ; else echo "Then notes are clean ☺" ; fi
+    - if ! git diff-index --quiet HEAD -- ; then printf "NOTES NOT CLEAN!\n\n" ; git diff ; exit 1 ; else echo "Then notes are clean ☺" ; fi



View it on GitLab: https://salsa.debian.org/reproducible-builds/reproducible-notes/commit/8e415a0675e6cdea9777e8703a846efb0ab98991

-- 
View it on GitLab: https://salsa.debian.org/reproducible-builds/reproducible-notes/commit/8e415a0675e6cdea9777e8703a846efb0ab98991
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.reproducible-builds.org/pipermail/rb-commits/attachments/20181106/a3065fd0/attachment.html>


More information about the rb-commits mailing list