OLD | NEW |
(Empty) | |
| 1 #!/bin/bash |
| 2 |
| 3 # Check that we're able to submit from a directory that doesn't exist on the |
| 4 # trunk. This tests for a previous bug where we ended up with an invalid CWD |
| 5 # after switching to the merge branch. |
| 6 |
| 7 set -e |
| 8 |
| 9 . ./test-lib.sh |
| 10 |
| 11 setup_initsvn |
| 12 setup_gitsvn |
| 13 |
| 14 ( |
| 15 set -e |
| 16 cd git-svn |
| 17 git config rietveld.server localhost:8080 |
| 18 |
| 19 # Create a branch and give it an issue. |
| 20 git checkout -q -b new |
| 21 mkdir dir |
| 22 cd dir |
| 23 echo "some work done on a branch" >> test |
| 24 git add test; git commit -q -m "branch work" |
| 25 export EDITOR=/bin/true |
| 26 test_expect_success "upload succeeds" \ |
| 27 "$GIT_CL upload -m test master... | grep -q 'Issue created'" |
| 28 test_expect_success "git-cl dcommits ok" \ |
| 29 "$GIT_CL dcommit -f" |
| 30 ) |
| 31 |
| 32 SUCCESS=$? |
| 33 |
| 34 cleanup |
| 35 |
| 36 if [ $SUCCESS == 0 ]; then |
| 37 echo PASS |
| 38 fi |
OLD | NEW |