You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by jl...@apache.org on 2024/01/02 16:16:10 UTC
(ofbiz-framework) branch release22.01 updated: Fixed: Replace SvnCheckout in Gradle (OFBIZ-12868)
This is an automated email from the ASF dual-hosted git repository.
jleroux pushed a commit to branch release22.01
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git
The following commit(s) were added to refs/heads/release22.01 by this push:
new 9c1d5d19f3 Fixed: Replace SvnCheckout in Gradle (OFBIZ-12868)
9c1d5d19f3 is described below
commit 9c1d5d19f331082b28885e2da613e50e89555b6c
Author: Jacques Le Roux <ja...@les7arts.com>
AuthorDate: Tue Jan 2 17:12:57 2024 +0100
Fixed: Replace SvnCheckout in Gradle (OFBIZ-12868)
Fixes issues while switching branches
---
pullAllPluginsSource.sh | 5 +++--
pullPluginSource.sh | 7 +++++--
2 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/pullAllPluginsSource.sh b/pullAllPluginsSource.sh
index eaa5f7e016..fd69ddc790 100755
--- a/pullAllPluginsSource.sh
+++ b/pullAllPluginsSource.sh
@@ -22,6 +22,7 @@ if [ -d "plugins" ]
rm -rf plugins
fi
+# Get the branch used by the framework
git branch --show-current > temp.txt
branch=$(cat temp.txt)
rm temp.txt
@@ -30,9 +31,9 @@ git clone https://github.com/apache/ofbiz-plugins.git plugins
cd plugins
# By default the clone branch is trunk
-if [ ! trunk == "$branch" ]
+if [ ! $branch = trunk ]
then
- git switch -c "$branch" --track origin/"$branch"
+ git switch "$branch"
fi
# remove .git, in this case it's big useless information
diff --git a/pullPluginSource.sh b/pullPluginSource.sh
index c4de388afd..cfe8fdf4c9 100644
--- a/pullPluginSource.sh
+++ b/pullPluginSource.sh
@@ -39,13 +39,16 @@ fi
# Add the plugin
git sparse-checkout add "$1"
+
+# Get the branch used in framework
+cd ..
git branch --show-current > temp.txt
branch=$(cat temp.txt)
rm temp.txt
# By default the clone branch is trunk
-if [ ! trunk == "$branch" ]
+if [ ! "$branch" = trunk ]
then
- call git switch -c "$1" --track origin/"$1"
+ git switch "$branch"
fi
cd ..