From a7f4104d459869c3d35696f3d61ddb2d22ebb564 Mon Sep 17 00:00:00 2001 From: winlin Date: Mon, 24 Aug 2015 11:04:39 +0800 Subject: [PATCH] fix bug of commit script --- trunk/scripts/git.commit.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trunk/scripts/git.commit.sh b/trunk/scripts/git.commit.sh index 2cbc0cfd4..b4f412334 100755 --- a/trunk/scripts/git.commit.sh +++ b/trunk/scripts/git.commit.sh @@ -24,7 +24,7 @@ product_dir=$work_dir # allow start script from any dir cd $work_dir && work_branch=`git branch -a|grep "*"|awk '{print $2}'` && commit_branch=2.0release && git checkout $commit_branch -ret=$"; if [[ $ret -ne 0 ]]; then echo "switch branch failed. ret=$ret"; exit $ret; fi +ret=$ret; if [[ $ret -ne 0 ]]; then echo "switch branch failed. ret=$ret"; exit $ret; fi echo "work branch is $work_branch" echo "commit branch is $commit_branch"