mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-08-10 08:08:06 -05:00
Merge pull request #3799 from akva2/fix_update_data_add_new_files
fixed: use the --porcelain option when parsing git status
This commit is contained in:
@@ -262,7 +262,7 @@ then
|
||||
fi
|
||||
|
||||
# Add potential new files
|
||||
untracked=`git status | sed '1,/Untracked files/d' | tail -n +3 | head -n -2`
|
||||
untracked=`git status --porcelain | awk '$1~/\?/{print $2}'`
|
||||
if [ -n "$untracked" ]
|
||||
then
|
||||
git add $untracked
|
||||
|
||||
Reference in New Issue
Block a user