Commit 65bda881 authored by MARGERY David's avatar MARGERY David
Browse files

Add helpfull debug message if git state not clean

Packaging attempts to make sure git state is clean before packaging. If
it is not, output a more helpfull message
parent 3e42f072
Pipeline #52459 failed with stages
in 13 minutes and 17 seconds
......@@ -201,7 +201,7 @@ namespace :package do
# make sure no pending changes need to be commited to repository
uncommitted_changes=`git status --untracked-files=no --porcelain`
if uncommitted_changes != ""
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"
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}"
end
# prepare the build directory
......
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