Fix 'repo cherry-pick' to avoid hanging on commit-msg update.
Fix 'repo cherry-pick' to avoid hanging on commit-msg update.

After performing the actual cherry-pick operation, the code
in cherry_pick.py opens a pipe to 'git commit -F' to rewrite the commit
message, emits the fixed-up commit msg to the pipe, then waits
for 'git commit' to complete. The child 'git' process winds up
hanging while reading from the pipe, however, since the parent
process still has it open. To fix the hang, change the parent process
to close its end of the pipe after it has emitted the message.

Change-Id: I5929371e69a5b076f09009d00d40a2c72ac8ac33

codetutil/git-repo,lipro-yocto/git-repo,ediTLJ/git-repo,iAlios/git-repo,ediTLJ/git-repo,lipro-yocto/git-repo,simbasailor/git-repo,biaolv/git-repo,llg84/google_repo,nuclearmistake/repo,wavecomp/git-repo,kdavis-mozilla/repo-repo,qioixiy/git-repo,chenzilin/git-repo,slfyusufu/repo,FlymeOS/repo,FuangCao/repo,wavecomp/git-repo,zemug/repo,FuangCao/repo,testbetta/repo-pub,petemoore/git-repo,mer-tools/git-repo,GatorQue/git-repo-flow,testbetta/git-repo-pub,11NJ/git-repo,FlymeOS/repo,GerritCodeReview/git-repo,ronan22/repo,GatorQue/git-repo-flow,gbraad/git-repo,couchbasedeps/git-repo,zemug/repo,petemoore/git-repo,CyanogenMod/tools_repo,biaolv/git-repo,gbraad/git-repo,frogbywyplay/git-repo,mixedpuppy/git-repo,chzhong/git-repo,mozilla/git-repo,ronan22/repo,simbasailor/git-repo,mer-tools/git-repo,dodocat/git-repo,mozilla/git-repo,11NJ/git-repo,mixedpuppy/git-repo,darrengarvey/git-repo,qioixiy/git-repo,lewixliu/git-repo,qupai/git-repo,FuangCao/git-repo,aosp-mirror/tools_repo,codetutil/git-repo,nuclearmistake/repo,iAlios/git-repo,dodocat/git-repo,chenzilin/git-repo,lewixliu/git-repo,kdavis-mozilla/repo-repo,slfyusufu/repo,FuangCao/git-repo,xyyangkun/git-repo,frogbywyplay/git-repo,flingone/git-repo,4455jkjh/repo,GerritCodeReview/git-repo,qupai/git-repo,TheQtCompany/git-repo,chzhong/git-repo,darrengarvey/git-repo,llg84/google_repo,aosp-mirror/tools_repo,jingyu/git-repo,gabbayo/git-repo,TheQtCompany/git-repo,4455jkjh/repo,testbetta/git-repo-pub,jingyu/git-repo,testbetta/repo-pub,gabbayo/git-repo,couchbasedeps/git-repo,xyyangkun/git-repo,flingone/git-repo,CyanogenMod/tools_repo