mirror of
https://github.com/prometheus/prometheus.git
synced 2025-01-12 14:27:27 -08:00
codemirror_sync: Use reset and checkout instead of restore (#9396)
The git version we are using for CI is too old. Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
This commit is contained in:
parent
1681a8d539
commit
0de0e1ee0e
|
@ -107,13 +107,13 @@ process_repo() {
|
||||||
git add .
|
git add .
|
||||||
|
|
||||||
for excluded_dir in ${excluded_dirs}; do
|
for excluded_dir in ${excluded_dirs}; do
|
||||||
git restore --staged "${excluded_dir}/*"
|
git reset -- "${excluded_dir}/*"
|
||||||
git restore "${excluded_dir}/*"
|
git checkout -- "${excluded_dir}/*"
|
||||||
done
|
done
|
||||||
|
|
||||||
for excluded_file in ${excluded_files}; do
|
for excluded_file in ${excluded_files}; do
|
||||||
git restore --staged "${excluded_file}"
|
git reset -- "${excluded_file}"
|
||||||
git restore "${excluded_file}"
|
git checkout -- "${excluded_file}"
|
||||||
done
|
done
|
||||||
|
|
||||||
if [[ -n "$(git status --porcelain)" ]]; then
|
if [[ -n "$(git status --porcelain)" ]]; then
|
||||||
|
|
Loading…
Reference in a new issue