Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(432)

Side by Side Diff: git_cl/test/submit-from-new-dir.sh

Issue 5012006: Move git-cl into depot_tools.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools/
Patch Set: '' Created 9 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « git_cl/test/save-description-on-failure.sh ('k') | git_cl/test/tbr.sh » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:executable
+ *
OLDNEW
(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
OLDNEW
« no previous file with comments | « git_cl/test/save-description-on-failure.sh ('k') | git_cl/test/tbr.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698