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

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

Issue 5972005: Add support for post-dcommit hooks (Closed) Base URL: http://git.chromium.org/git/git-cl.git@master
Patch Set: '' Created 9 years, 11 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/git_cl.py ('k') | no next file » | 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
+ *
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 #!/bin/bash
2
3 set -e
4
5 . ./test-lib.sh
6
7 setup_initsvn
8 setup_gitsvn
9
10 (
11 set -e
12 cd git-svn
13
14 cat > .git/hooks/post-cl-dcommit << _EOF
15 #!/bin/bash
16 git branch -m COMMITTED
17 _EOF
18 chmod +x .git/hooks/post-cl-dcommit
19
20 git config rietveld.server localhost:1
21 git checkout -q --track -b work
22 echo "some work done" >> test
23 git add test; git commit -q -m "work"
24
25 test_expect_success "dcommitted code" \
26 "$GIT_CL dcommit -f --tbr --bypass-hooks -m 'dcommit'"
27
28 test_expect_success "post-cl-dcommit hook executed" \
29 "git symbolic-ref HEAD | grep -q COMMITTED"
30 )
31 SUCCESS=$?
32
33 cleanup
34
35 if [ $SUCCESS == 0 ]; then
36 echo PASS
37 fi
OLDNEW
« no previous file with comments | « git_cl/git_cl.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698