We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9856f70 commit 74643e6Copy full SHA for 74643e6
test/teeAndValidation.test.js
@@ -79,6 +79,12 @@ describe('isPackPost()', () => {
79
it('returns true for git-upload-pack POST', () => {
80
expect(isPackPost({ method: 'POST', url: '/a/b.git/git-upload-pack' })).to.be.true;
81
});
82
+ it('returns true for git-upload-pack POST, with a gitlab style multi-level org', () => {
83
+ expect(isPackPost({ method: 'POST', url: '/a/bee/sea/dee.git/git-upload-pack' })).to.be.true;
84
+ });
85
+ it('returns true for git-upload-pack POST, with a bare (no org) repo URL', () => {
86
+ expect(isPackPost({ method: 'POST', url: '/a.git/git-upload-pack' })).to.be.true;
87
88
it('returns false for other URLs', () => {
89
expect(isPackPost({ method: 'POST', url: '/info/refs' })).to.be.false;
90
0 commit comments