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

Side by Side Diff: tests/post-dcommit-hook-test.sh

Issue 2394033003: Remove SVN (and dcommit) support from git-cl (Closed)
Patch Set: Rebase Created 4 years 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
« no previous file with comments | « tests/patch.sh ('k') | tests/post-land-hook-test.sh » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #!/usr/bin/env bash
2
3 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file.
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
18 cat > .git/hooks/post-cl-dcommit << _EOF
19 #!/usr/bin/env bash
20 git branch -m COMMITTED
21 _EOF
22 chmod +x .git/hooks/post-cl-dcommit
23
24 git config rietveld.server localhost:1
25 git checkout -q --track -b work
26 echo "some work done" >> test
27 git add test; git commit -q -m "work \
28 TBR=foo"
29
30 test_expect_success "dcommitted code" \
31 "$GIT_CL dcommit --no-oauth2 -f --bypass-hooks -m 'dcommit'"
32
33 test_expect_success "post-cl-dcommit hook executed" \
34 "git symbolic-ref HEAD | grep -q COMMITTED"
35 )
36 SUCCESS=$?
37
38 cleanup
39
40 if [ $SUCCESS == 0 ]; then
41 echo PASS
42 fi
OLDNEW
« no previous file with comments | « tests/patch.sh ('k') | tests/post-land-hook-test.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698