File tree Expand file tree Collapse file tree 1 file changed +12
-11
lines changed Expand file tree Collapse file tree 1 file changed +12
-11
lines changed Original file line number Diff line number Diff line change @@ -89,13 +89,13 @@ git clone https://github.com/kmpeters/xxx.git -b ${BRANCH_OS} ${PREFIX}
89
89
90
90
cd ${PREFIX}
91
91
92
- echo " Switching to local deployed branch..."
93
- git checkout -b deployed
94
-
95
-
96
92
echo " ${INDENT} Changing IOC prefix..."
97
93
./${CHANGE_PREFIX} xxx ${PREFIX}
98
94
95
+ # Remove the changePrefix.pl script
96
+ echo " ${INDENT} Removing ${CHANGE_PREFIX} ..."
97
+ rm ${CHANGE_PREFIX}
98
+
99
99
# Workaround for strange changePrefix.pl behavior on Windows
100
100
if [ " ${OS} " == " Windows" ]
101
101
then
@@ -110,15 +110,16 @@ then
110
110
mv iocBoot/ioc${OS} iocBoot/ioc${PREFIX}
111
111
fi
112
112
113
- # Add renamed directories/files to git
114
- git add iocBoot/ioc${PREFIX}
115
- git add * ${PREFIX} *
113
+ # Create a fresh git repo
114
+ echo " ${INDENT} Creating a fresh git repo..."
115
+ rm -rf .git/
116
+ git init
116
117
117
- # Remove the changePrefix.pl script
118
- echo " ${INDENT} Removing ${CHANGE_PREFIX} ..."
119
- git rm ${CHANGE_PREFIX}
118
+ # Add files to git
119
+ echo " ${INDENT} Adding files ..."
120
+ git add .
120
121
121
- echo " ${INDENT} Commiting changes to deployed branch ..."
122
+ echo " ${INDENT} Commiting changes..."
122
123
git commit -am " Initial commit of ${PREFIX} after running ${CHANGE_PREFIX} "
123
124
124
125
cd ..
You can’t perform that action at this time.
0 commit comments