@ -967,8 +967,8 @@ def SendUpstream(parser, args, cmd):
# We want to squash all this branch's commits into one commit with the
# We want to squash all this branch's commits into one commit with the
# proper description.
# proper description.
# We do this by doing a " merge --squash" into a new commit branch, then
# We do this by doing a " reset --soft" to the base branch (which keeps
# dcommitting that.
# the working copy the same), then dcommitting that.
MERGE_BRANCH = ' git-cl-commit '
MERGE_BRANCH = ' git-cl-commit '
# Delete the merge branch if it already exists.
# Delete the merge branch if it already exists.
if RunGitWithCode ( [ ' show-ref ' , ' --quiet ' , ' --verify ' ,
if RunGitWithCode ( [ ' show-ref ' , ' --quiet ' , ' --verify ' ,
@ -987,8 +987,8 @@ def SendUpstream(parser, args, cmd):
# we clean up the branches.
# we clean up the branches.
retcode = - 1
retcode = - 1
try :
try :
RunGit ( [ ' checkout ' , ' -q ' , ' -b ' , MERGE_BRANCH , base_branch ])
RunGit ( [ ' checkout ' , ' -q ' , ' -b ' , MERGE_BRANCH ])
RunGit ( [ ' me rg e' , ' --s quash' , cl . GetBranchRef ( ) ] )
RunGit ( [ ' reset ' , ' --s oft' , base_branch ] )
if options . contributor :
if options . contributor :
RunGit ( [ ' commit ' , ' --author ' , options . contributor , ' -m ' , description ] )
RunGit ( [ ' commit ' , ' --author ' , options . contributor , ' -m ' , description ] )
else :
else :