File tree Expand file tree Collapse file tree 1 file changed +17
-1
lines changed
scripts/quality_and_indexing Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change 2
2
3
3
set -e
4
4
5
+ # Navigate to the correct repository
6
+ cd " ../../sinequa_configs"
7
+
8
+ # Ensure the script only runs if pointing to the correct remote
9
+ REPO_URL=
" [email protected] :NASA-IMPACT/sde-backend.git"
10
+ CURRENT_URL=$( git -C " $REPO_DIR " config --get remote.origin.url)
11
+
12
+ if [ " $CURRENT_URL " != " $REPO_URL " ]; then
13
+ echo " Error: This script can only be run in the repository with the remote URL '$REPO_URL '."
14
+ echo " Current remote URL is '$CURRENT_URL '. Exiting."
15
+ exit 1
16
+ fi
17
+
5
18
# Checkout and pull master
6
19
echo " Checking out master branch..."
7
20
git checkout master
@@ -22,10 +35,13 @@ git pull origin webapp_config_generation
22
35
23
36
# Merge dev into webapp_config_generation
24
37
echo " Merging dev into webapp_config_generation..."
25
- git merge -X theirs dev
38
+ git merge -X theirs dev -m " Merge dev into webapp_config_generation branch - auto-resolved conflicts by taking dev changes "
26
39
27
40
# Push the changes to webapp_config_generation
28
41
echo " Pushing changes to webapp_config_generation..."
29
42
git push origin webapp_config_generation
30
43
31
44
echo " Operation completed successfully!"
45
+
46
+ # Return to the original directory
47
+ cd -
You can’t perform that action at this time.
0 commit comments