5 # this is hardcoded; change it if needed
9 # merge check -- the M flag
10 # ----------------------------------------------------------------------
22 try
"ADMIN_PUSH set1; !/FATAL/" or die text
();
29 glt clone u1 file:///foo
31 /You appear to have cloned an empty/
37 test-commit aa; ok; /1 file changed, 1 insertion/
39 glt push u1 origin master
40 ok; /new branch.*master.-..master/
41 /create.delete ignored.*merge-check/
42 checkout -b new; ok; /Switched to a new branch 'new'/
44 checkout master; ok; /Switched to branch 'master'/
46 git merge new; ok; /Merge made/
51 # push by u4 should fail
53 glt push u4 file:///foo master
54 !ok; /WM refs/heads/master foo u4 DENIED by fallthru/
56 /remote rejected.*hook declined/
57 /failed to push some refs/
60 # push by u3 should succeed
62 glt push u3 file:///foo master
63 ok; /To file:///foo/; /master.-..master/
66 # rewind by u3 should fail
68 reset-h start; ok; /HEAD is now at .* aa /
69 glt push u3 file:///foo +master
70 !ok; /rejected.*hook declined/
71 /failed to push some refs/
74 # rewind by u2 should succeed
76 glt push u2 file:///foo +master
81 # push by u2 should fail
83 reset-h end; ok; /HEAD is now at .* ff /
84 glt push u2 file:///foo master
85 !ok; /WM refs/heads/master foo u2 DENIED by fallthru/
87 /remote rejected.*hook declined/
88 /failed to push some refs/
91 # push by u1 should succeed
93 glt push u1 file:///foo master
94 ok; /master.-..master/