|
@@ -13,9 +13,11 @@ for file in $files; do
|
|
# 判断文件是否存在于dev分支
|
|
# 判断文件是否存在于dev分支
|
|
if git show ${dev_branch}:${file} &> /dev/null; then
|
|
if git show ${dev_branch}:${file} &> /dev/null; then
|
|
# 如果文件存在于dev分支,使用git checkout命令将文件从test分支复制到dev分支
|
|
# 如果文件存在于dev分支,使用git checkout命令将文件从test分支复制到dev分支
|
|
|
|
+ echo "git checkout ${test_branch} ${file}"
|
|
git checkout ${test_branch} ${file}
|
|
git checkout ${test_branch} ${file}
|
|
else
|
|
else
|
|
# 如果文件不存在于dev分支
|
|
# 如果文件不存在于dev分支
|
|
|
|
+ echo "git show ${test_branch}:${file} > ${file}"
|
|
git show ${test_branch}:${file} > ${file}
|
|
git show ${test_branch}:${file} > ${file}
|
|
git add ${file}
|
|
git add ${file}
|
|
fi
|
|
fi
|