diff options
author | Sitaram Chamarty <sitaram@atc.tcs.com> | 2014-04-12 20:18:52 +0530 |
---|---|---|
committer | Sitaram Chamarty <sitaram@atc.tcs.com> | 2014-04-12 20:29:01 +0530 |
commit | e3c85adaa2f284e2838c8f0677780bc493c3e60a (patch) | |
tree | 47151121e843e561340b234b013826caea3b29cc /t | |
parent | Test for repo-specific-hooks-trigger (diff) | |
download | gitolite-gentoo-e3c85adaa2f284e2838c8f0677780bc493c3e60a.tar.gz gitolite-gentoo-e3c85adaa2f284e2838c8f0677780bc493c3e60a.tar.bz2 gitolite-gentoo-e3c85adaa2f284e2838c8f0677780bc493c3e60a.zip |
git 1.9.0 changed the rules on file:// urls
used to allow "file://foo" to mean "foo in current directory", but now it's
not allowed!
Diffstat (limited to 't')
-rwxr-xr-x | t/0-me-first.t | 8 | ||||
-rwxr-xr-x | t/branch-perms.t | 30 |
2 files changed, 19 insertions, 19 deletions
diff --git a/t/0-me-first.t b/t/0-me-first.t index 47784ae..12668f6 100755 --- a/t/0-me-first.t +++ b/t/0-me-first.t @@ -31,18 +31,18 @@ try " # basic clone cd .. - glt clone u1 file://aa u1aa; ok; /Cloning into 'u1aa'.../ + glt clone u1 file:///aa u1aa; ok; /Cloning into 'u1aa'.../ /warning: You appear to have cloned an empty repository/ [ -d u1aa ]; ok # basic clone deny - glt clone u4 file://aa u4aa; !ok; /R any aa u4 DENIED by fallthru/ + glt clone u4 file:///aa u4aa; !ok; /R any aa u4 DENIED by fallthru/ [ -d u4aa ]; !ok # basic push cd u1aa; ok tc z-507; ok; /master .root-commit. 7cf7624. z-507/ - glt push u1 origin HEAD; ok; /To file://aa/ + glt push u1 origin HEAD; ok; /To file:///aa/ /\\[new branch\\] *HEAD -> master/ # basic rewind @@ -61,7 +61,7 @@ try " # basic rewind deny cd .. - glt clone u2 file://aa u2aa; ok; /Cloning into 'u2aa'.../ + glt clone u2 file:///aa u2aa; ok; /Cloning into 'u2aa'.../ cd u2aa; ok tc g-776 g-777 g-778; ok; /master 9cbc181. g-778/ glt push u2 origin HEAD; ok; /284951d..9cbc181 HEAD -> master/ diff --git a/t/branch-perms.t b/t/branch-perms.t index 64b2fcb..e59baea 100755 --- a/t/branch-perms.t +++ b/t/branch-perms.t @@ -31,11 +31,11 @@ try "ADMIN_PUSH set1; !/FATAL/" or die text(); try " cd ..; ok - glt clone u1 file://aa; ok + glt clone u1 file:///aa; ok cd aa; ok tc l-995 l-996 l-997 l-998 l-999 l-1000 l-1001 l-1002 l-1003; ok; /master a788db9. l-1003/ - glt push u1 origin HEAD; ok; /To file://aa/ + glt push u1 origin HEAD; ok; /To file:///aa/ /\\* \\[new branch\\] HEAD -> master/ git branch dev; ok @@ -49,27 +49,27 @@ try " # u2 rewind master fail git reset --hard HEAD^; ok; /HEAD is now at 65d5f4a l-1002/ tc s-361; ok; /master b331651. s-361/ - glt push u2 file://aa +master; !ok; reject + glt push u2 file:///aa +master; !ok; reject /\\+ refs/heads/master aa u2 DENIED by fallthru/ # u3 rewind master succeed git reset --hard HEAD^; ok tc m-508; ok - glt push u3 file://aa +master; ok; /\\+ .* master -> master \\(forced update\\)/ + glt push u3 file:///aa +master; ok; /\\+ .* master -> master \\(forced update\\)/ # u4 push master succeed tc f-526; ok; - glt push u4 file://aa master; ok; /master -> master/ + glt push u4 file:///aa master; ok; /master -> master/ # u4 rewind master fail git reset --hard HEAD^; ok; - glt push u4 file://aa +master; !ok; /\\+ refs/heads/master aa u4 DENIED by fallthru/ + glt push u4 file:///aa +master; !ok; /\\+ refs/heads/master aa u4 DENIED by fallthru/ # u3 and u4 / dev foo -- all 4 fail - glt push u3 file://aa dev; !ok; /W refs/heads/dev aa u3 DENIED by fallthru/ - glt push u4 file://aa dev; !ok; /W refs/heads/dev aa u4 DENIED by fallthru/ - glt push u3 file://aa foo; !ok; /W refs/heads/foo aa u3 DENIED by fallthru/ - glt push u4 file://aa foo; !ok; /W refs/heads/foo aa u4 DENIED by fallthru/ + glt push u3 file:///aa dev; !ok; /W refs/heads/dev aa u3 DENIED by fallthru/ + glt push u4 file:///aa dev; !ok; /W refs/heads/dev aa u4 DENIED by fallthru/ + glt push u3 file:///aa foo; !ok; /W refs/heads/foo aa u3 DENIED by fallthru/ + glt push u4 file:///aa foo; !ok; /W refs/heads/foo aa u4 DENIED by fallthru/ # clean up for next set glt push u1 -f origin master dev foo @@ -77,14 +77,14 @@ try " # u5 push master fail tc l-417; ok - glt push u5 file://aa master; !ok; /W refs/heads/master aa u5 DENIED by refs/heads/master/ + glt push u5 file:///aa master; !ok; /W refs/heads/master aa u5 DENIED by refs/heads/master/ # u5 rewind dev succeed - glt push u5 file://aa +dev^:dev + glt push u5 file:///aa +dev^:dev ok; /\\+ .* dev\\^ -> dev \\(forced update\\)/ # u5 rewind foo fail - glt push u5 file://aa +foo^:foo + glt push u5 file:///aa +foo^:foo !ok; /\\+ refs/heads/foo aa u5 DENIED by fallthru/ # u5 tries to push foo; succeeds @@ -92,7 +92,7 @@ try " # u5 push foo succeed tc e-530; ok; - glt push u5 file://aa foo; ok; /foo -> foo/ + glt push u5 file:///aa foo; ok; /foo -> foo/ # u1 delete branch dev succeed glt push u1 origin :dev; ok; / - \\[deleted\\] *dev/ @@ -117,6 +117,6 @@ try " glt push u1 origin :dev; !ok; /D refs/heads/dev aa u1 DENIED by fallthru/ # u4 delete branch dev succeed - glt push u4 file://aa :dev; ok; / - \\[deleted\\] *dev/ + glt push u4 file:///aa :dev; ok; / - \\[deleted\\] *dev/ "; |