作者 潘浩彬

合并分支 'dev_00.00.00.08' 到 'master'

Dev 00.00.00.08



查看合并请求 !2
  1 +#!/bin/bash
  2 +#1、输入分支名,账号,密码,描述信息
  3 +branch_name="dev_00.00.00.08"
  4 +Account="PanHaoBin"
  5 +PassWord="ookk3866"
  6 +Message="这是一个上传脚本测试"
  7 +ProjectName="114.132.166.25:8099/PanHaoBin/SerialPorject.git"
  8 +
  9 +
  10 +# 检查分支是否存在
  11 +if git rev-parse --verify "$branch_name" >/dev/null 2>&1; then
  12 + echo "分支 $branch_name 存在"
  13 +else
  14 + echo "分支 $branch_name 不存在"
  15 + # 创建新分支
  16 + git branch "$branch_name"
  17 +fi
  18 +
  19 +
  20 +
  21 +
  22 +# 切换到新创建的分支
  23 +git checkout "$branch_name"
  24 +
  25 +# 写入描述/注释
  26 +git add .
  27 +git commit -m "$Message"
  28 +
  29 +# 设置远程仓库的URL
  30 +remote_url="http://$Account:$PassWord@$ProjectName"
  31 +
  32 +# 上传到远程仓库
  33 +git push "$remote_url" "$branch_name"
@@ -200,9 +200,7 @@ static void *UartDeal_rece(void *arg) @@ -200,9 +200,7 @@ static void *UartDeal_rece(void *arg)
200 memset(getbuf,0,sizeof(getbuf)); //清空接收数组 200 memset(getbuf,0,sizeof(getbuf)); //清空接收数组
201 ret = read(Uart_fd,getbuf,sizeof(getbuf)); 201 ret = read(Uart_fd,getbuf,sizeof(getbuf));
202 202
203 - USER_LOG_INFO("RecvLen:%d\n",ret);  
204 -  
205 - //UartDeal_Recv_interface(Uart_fd, getbuf, ret); 203 + UartDeal_Recv_interface(Uart_fd, getbuf, ret);
206 204
207 } 205 }
208 } 206 }