| OLD | NEW |
| 1 #!/bin/bash | 1 #!/bin/bash |
| 2 | 2 |
| 3 # Abort on error. | 3 # Abort on error. |
| 4 set -e | 4 set -e |
| 5 | 5 |
| 6 PWD=`pwd` | 6 PWD=`pwd` |
| 7 REPO_URL=file://$PWD/svnrepo | 7 REPO_URL=file://$PWD/svnrepo |
| 8 TRUNK_URL=$REPO_URL/trunk | 8 TRUNK_URL=$REPO_URL/trunk |
| 9 BRANCH_URL=$REPO_URL/branches/some_branch | 9 BRANCH_URL=$REPO_URL/branches/some_branch |
| 10 GITREPO_PATH=$PWD/gitrepo | 10 GITREPO_PATH=$PWD/gitrepo |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 return $exit_code | 96 return $exit_code |
| 97 fi | 97 fi |
| 98 } | 98 } |
| 99 | 99 |
| 100 # Grab the XSRF token from the review server and print it to stdout. | 100 # Grab the XSRF token from the review server and print it to stdout. |
| 101 print_xsrf_token() { | 101 print_xsrf_token() { |
| 102 curl --cookie dev_appserver_login="test@example.com:False" \ | 102 curl --cookie dev_appserver_login="test@example.com:False" \ |
| 103 --header 'X-Requesting-XSRF-Token: 1' \ | 103 --header 'X-Requesting-XSRF-Token: 1' \ |
| 104 http://localhost:8080/xsrf_token 2>/dev/null | 104 http://localhost:8080/xsrf_token 2>/dev/null |
| 105 } | 105 } |
| OLD | NEW |