Commit eba2e261 authored by MARGERY David's avatar MARGERY David
Browse files

Output unexpected diff to STDERR

parent f8005bd3
Pipeline #52479 failed with stages
in 12 minutes and 15 seconds
......@@ -202,7 +202,7 @@ namespace :package do
uncommitted_changes=`git status --untracked-files=no --porcelain`
if uncommitted_changes != ""
STDERR.puts "Unexpected diff:"
git diff
STDERR.puts `git diff`
fail "You are building from a directory with uncommited files in git. Please commit pending changes so there is a chance the build can be traked back to a specific state in the repository\n#{uncommitted_changes}"
Supports Markdown
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