File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
3
export KNOWN_GENERATED_PATHS=(' :!vendor' ' :!pkg/manifests' ' :!manifests' ' :!go.sum' ' :!go.mod' )
4
+ # TODO(tflannag): This is hacky but works in the current setup.
5
+ export ROOT_GENERATED_PATHS=( " vendor" " pkg/manifests" " manifests" " go.mod" " go.sum" )
4
6
export UPSTREAM_REMOTES=(" api" " operator-registry" " operator-lifecycle-manager" )
Original file line number Diff line number Diff line change @@ -5,6 +5,10 @@ cph=$(git rev-list -n 1 CHERRY_PICK_HEAD 2> /dev/null)
5
5
set -o errexit
6
6
set -o pipefail
7
7
8
+ ROOT_DIR=$( dirname " ${BASH_SOURCE[@]} " ) /..
9
+ # shellcheck disable=SC1091
10
+ source " ${ROOT_DIR} /scripts/common.sh"
11
+
8
12
pop_all=true
9
13
10
14
set +u
@@ -56,7 +60,7 @@ function pop() {
56
60
# 4. Remove from cherrypick set
57
61
make vendor
58
62
make manifests
59
- git add .
63
+ git add " ${subtree_dir} " " ${ROOT_GENERATED_PATHS[@]} "
60
64
git status
61
65
git commit --amend --allow-empty --no-edit --trailer " Upstream-repository: ${remote} " --trailer " Upstream-commit: ${rc} "
62
66
You can’t perform that action at this time.
0 commit comments