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.
2 parents 9948f6e + 8d5759d commit 906c517Copy full SHA for 906c517
misc/scripts/prepare-db-upgrade.sh
@@ -30,7 +30,10 @@ EOF
30
exit "${exit_code}"
31
}
32
33
-prev_hash="origin/main"
+# default for prev_hash: the main branch of the remote for 'github/codeql'.
34
+# This works out as a dynamic lookup of the hash of the file in the main branch
35
+# of the repo.
36
+prev_hash=$(git remote -v | grep 'github/codeql\.git (fetch)$' | cut -f1)/main
37
38
while [ $# -gt 0 ]; do
39
case "$1" in
0 commit comments