TT#44969 Stop parsing 'git status' output, use '--porcelain' mode

Change-Id: Ife84a85e3879f975a8539c680f227f1ea9d9d41f
changes/51/24551/5
Alexander Lutay 8 years ago
parent 9b7ce2abf2
commit 7f92e243ee

@ -351,8 +351,8 @@ record_commit_id() {
}
is_git_clean() {
log_debug "git status | grep -qE 'working (directory|tree) clean'"
if git status | grep -qE 'working (directory|tree) clean'; then
log_debug "call 'git status --porcelain=v2'. it must have no output"
if [ -z "$(git status --porcelain=v2)" ]; then
return 0
else
return 1

Loading…
Cancel
Save