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.
origin
1 parent f097168 commit ec5d655Copy full SHA for ec5d655
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/semmle-code'.
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/semmle-code\.git (fetch)$' | cut -f1)/main
37
38
while [ $# -gt 0 ]; do
39
case "$1" in
0 commit comments