We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 23d89dc commit c532ab2Copy full SHA for c532ab2
hack/apidiff.sh
@@ -55,10 +55,19 @@ fi
55
56
# Check for apidiff tool, install it if not found
57
if ! command -v "${API_DIFF_TOOL}" &> /dev/null; then
58
+ GOBIN=${GOBIN:-$(go env GOPATH)/bin}
59
echo "Installing apidiff into ${GOBIN}."
60
go install golang.org/x/exp/cmd/apidiff@latest
61
fi
62
63
+# Ensure the remote is set
64
+if ! git remote get-url origin &> /dev/null; then
65
+ git remote add origin https://github.com/kubernetes-sigs/structured-merge-diff.git
66
+fi
67
+
68
+# Fetch the latest changes from the remote
69
+git fetch origin
70
71
# Fetch common base if -r is not set
72
if [ -z "${REFERENCE_REVISION}" ]; then
73
echo "Determining common base with origin/master..."
0 commit comments