Skip to content

Commit 0d34f44

Browse files
committed
add final checkout of master branch to script
1 parent ba9992e commit 0d34f44

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/quality_and_indexing/pull_and_merge_webapp_automation.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ cd "../../sinequa_configs"
77

88
# Ensure the script only runs if pointing to the correct remote
99
REPO_URL="[email protected]:NASA-IMPACT/sde-backend.git"
10-
CURRENT_URL=$(git config --get remote.origin.url)
10+
CURRENT_URL=$(git -C "$REPO_DIR" config --get remote.origin.url)
1111

1212
if [ "$CURRENT_URL" != "$REPO_URL" ]; then
1313
echo "Error: This script can only be run in the repository with the remote URL '$REPO_URL'."
@@ -68,6 +68,8 @@ git merge webapp_config_generation -m "Merge webapp_config_generation into dev b
6868
echo "Pushing changes to dev..."
6969
git push origin dev
7070

71+
git checkout master
72+
7173
# Return to the original directory
7274
cd -
7375

0 commit comments

Comments
 (0)