Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100755 23 lines (19 sloc) 0.626 kb
91ce195 add upload script
Benjamin C Meyer authored
1 #!/bin/bash
2 #
3 # upload-git-patch sha1 [issueId]
4 #
5 # Upload a patch for review
6 # To upload a patch to an existing issue pass the issue number as the second argument
7 #
8
9 sha1=$1
10 issue=$2
11
12 email=$CHROME_REVIEW_EMAIL
13 server="codereview.chromium.org"
14 cc="chromium-reviews@googlegroups.com"
15
16 title=`git log -1 --pretty="format:%s" $sha1`
17 description=`git log -1 --pretty="format:%b" $sha1`
18 if [ -z "${issue}" ] ; then
19 upload.py -y -e $email -s $server -t "${title}" -d "${description}" --cc=$cc $sha1^ $sha1
20 else
21 upload.py -y -e $email -s $server -t "${title}" -d "${description}" --cc=$cc --issue "${issue}" $sha1^ $sha1
22 fi
Something went wrong with that request. Please try again.