+# Copyright (C) The Arvados Authors. All rights reserved.
+#
+# SPDX-License-Identifier: AGPL-3.0
+
# If you change this file, you'll probably also want to make the same
# changes in apps/workbench/lib/app_version.rb.
if @hash.nil? or @hash.empty?
begin
local_modified = false
- git("status", "-s") do |git_pipe|
+ git("status", "--porcelain") do |git_pipe|
git_pipe.each_line do |_|
local_modified = true
# Continue reading the pipe so git doesn't get SIGPIPE.