@@ -90,40 +90,40 @@ describe('gitContext', () => {
9090 [ { ref : 'refs/tags/v1.0.0' , format : undefined , prHeadRef : false , sendGitQueryAsInput : false , buildxQuerySupport : true } , 'https://github.com/docker/actions-toolkit.git#860c1904a1ce19322e91ac35af1ab07466440c37' ] ,
9191 [ { ref : 'refs/pull/15/merge' , checksum : undefined , format : undefined , prHeadRef : true , sendGitQueryAsInput : false , buildxQuerySupport : true } , 'https://github.com/docker/actions-toolkit.git#f11797113e5a9b86bd976329c5dbb8a8bfdfadfa' ] ,
9292 // no format set (defaults to query only when client-side query resolution is enabled and supported)
93- [ { ref : 'refs/heads/master' , format : undefined , prHeadRef : false , sendGitQueryAsInput : true , buildxQuerySupport : true } , 'https://github.com/docker/actions-toolkit.git?ref=refs/heads/master&checksum =860c1904a1ce19322e91ac35af1ab07466440c37' ] ,
93+ [ { ref : 'refs/heads/master' , checksum : undefined , format : undefined , prHeadRef : false , sendGitQueryAsInput : true , buildxQuerySupport : true } , 'https://github.com/docker/actions-toolkit.git?ref=860c1904a1ce19322e91ac35af1ab07466440c37' ] ,
9494 [ { ref : 'refs/pull/15/merge' , checksum : undefined , format : undefined , prHeadRef : false , sendGitQueryAsInput : true , buildxQuerySupport : true } , 'https://github.com/docker/actions-toolkit.git?ref=860c1904a1ce19322e91ac35af1ab07466440c37' ] ,
9595 [ { ref : 'refs/pull/15/merge' , checksum : undefined , format : undefined , prHeadRef : true , sendGitQueryAsInput : true , buildxQuerySupport : true } , 'https://github.com/docker/actions-toolkit.git?ref=f11797113e5a9b86bd976329c5dbb8a8bfdfadfa' ] ,
9696 [ { ref : 'refs/heads/master' , format : undefined , prHeadRef : false , sendGitQueryAsInput : true , buildxQuerySupport : false } , 'https://github.com/docker/actions-toolkit.git#860c1904a1ce19322e91ac35af1ab07466440c37' ] ,
9797 [ { ref : 'refs/heads/master' , format : undefined , prHeadRef : false , sendGitQueryAsInput : false , buildxQuerySupport : true , attrs : { } } , 'https://github.com/docker/actions-toolkit.git#860c1904a1ce19322e91ac35af1ab07466440c37' ] ,
9898 [ { ref : 'refs/heads/master' , checksum : undefined , format : undefined , prHeadRef : false , sendGitQueryAsInput : false , buildxQuerySupport : true , attrs : { checksum : 'cafebabe' } } , 'https://github.com/docker/actions-toolkit.git#cafebabe' ] ,
9999 [ { ref : 'refs/heads/master' , format : undefined , prHeadRef : false , sendGitQueryAsInput : false , buildxQuerySupport : true , attrs : { subdir : 'subdir' } } , 'https://github.com/docker/actions-toolkit.git#860c1904a1ce19322e91ac35af1ab07466440c37:subdir' ] ,
100100 [ { ref : 'refs/heads/master' , format : undefined , prHeadRef : false , sendGitQueryAsInput : false , buildxQuerySupport : true , attrs : { ref : 'refs/tags/v1.0.0' } } , 'https://github.com/docker/actions-toolkit.git#860c1904a1ce19322e91ac35af1ab07466440c37' ] ,
101- [ { ref : 'refs/heads/master' , format : undefined , prHeadRef : false , sendGitQueryAsInput : false , buildxQuerySupport : true , attrs : { 'keep-git-dir' : 'true' } } , 'https://github.com/docker/actions-toolkit.git?ref=refs/heads/master&checksum =860c1904a1ce19322e91ac35af1ab07466440c37&keep-git-dir=true' ] ,
102- [ { ref : 'refs/heads/master' , format : undefined , prHeadRef : false , sendGitQueryAsInput : false , buildxQuerySupport : false , attrs : { 'keep-git-dir' : 'true' } } , 'https://github.com/docker/actions-toolkit.git?ref=refs/heads/master&checksum =860c1904a1ce19322e91ac35af1ab07466440c37&keep-git-dir=true' ] ,
101+ [ { ref : 'refs/heads/master' , checksum : undefined , format : undefined , prHeadRef : false , sendGitQueryAsInput : false , buildxQuerySupport : true , attrs : { 'keep-git-dir' : 'true' } } , 'https://github.com/docker/actions-toolkit.git?ref=860c1904a1ce19322e91ac35af1ab07466440c37&keep-git-dir=true' ] ,
102+ [ { ref : 'refs/heads/master' , checksum : undefined , format : undefined , prHeadRef : false , sendGitQueryAsInput : false , buildxQuerySupport : false , attrs : { 'keep-git-dir' : 'true' } } , 'https://github.com/docker/actions-toolkit.git?ref=860c1904a1ce19322e91ac35af1ab07466440c37&keep-git-dir=true' ] ,
103103 [ { ref : 'refs/heads/master' , checksum : undefined , format : undefined , prHeadRef : false , sendGitQueryAsInput : false , buildxQuerySupport : true , attrs : { checksum : 'cafebabe' , 'keep-git-dir' : 'true' } } , 'https://github.com/docker/actions-toolkit.git?ref=refs/heads/master&checksum=cafebabe&keep-git-dir=true' ] ,
104- [ { ref : 'refs/heads/master' , format : undefined , prHeadRef : false , sendGitQueryAsInput : false , buildxQuerySupport : true , attrs : { submodules : 'false' } } , 'https://github.com/docker/actions-toolkit.git?ref=refs/heads/master&checksum =860c1904a1ce19322e91ac35af1ab07466440c37&submodules=false' ] ,
105- [ { ref : 'refs/heads/master' , format : undefined , prHeadRef : false , sendGitQueryAsInput : false , buildxQuerySupport : false , attrs : { submodules : 'false' } } , 'https://github.com/docker/actions-toolkit.git?ref=refs/heads/master&checksum =860c1904a1ce19322e91ac35af1ab07466440c37&submodules=false' ] ,
104+ [ { ref : 'refs/heads/master' , checksum : undefined , format : undefined , prHeadRef : false , sendGitQueryAsInput : false , buildxQuerySupport : true , attrs : { submodules : 'false' } } , 'https://github.com/docker/actions-toolkit.git?ref=860c1904a1ce19322e91ac35af1ab07466440c37&submodules=false' ] ,
105+ [ { ref : 'refs/heads/master' , checksum : undefined , format : undefined , prHeadRef : false , sendGitQueryAsInput : false , buildxQuerySupport : false , attrs : { submodules : 'false' } } , 'https://github.com/docker/actions-toolkit.git?ref=860c1904a1ce19322e91ac35af1ab07466440c37&submodules=false' ] ,
106106 // query format
107- [ { ref : 'refs/heads/master' , format : 'query' , prHeadRef : false , sendGitQueryAsInput : false , buildxQuerySupport : true } , 'https://github.com/docker/actions-toolkit.git?ref=refs/heads/master&checksum =860c1904a1ce19322e91ac35af1ab07466440c37' ] ,
108- [ { ref : 'master' , format : 'query' , prHeadRef : false , sendGitQueryAsInput : false , buildxQuerySupport : true } , 'https://github.com/docker/actions-toolkit.git?ref=refs/heads/master&checksum =860c1904a1ce19322e91ac35af1ab07466440c37' ] ,
107+ [ { ref : 'refs/heads/master' , checksum : undefined , format : 'query' , prHeadRef : false , sendGitQueryAsInput : false , buildxQuerySupport : true } , 'https://github.com/docker/actions-toolkit.git?ref=860c1904a1ce19322e91ac35af1ab07466440c37' ] ,
108+ [ { ref : 'master' , checksum : undefined , format : 'query' , prHeadRef : false , sendGitQueryAsInput : false , buildxQuerySupport : true } , 'https://github.com/docker/actions-toolkit.git?ref=860c1904a1ce19322e91ac35af1ab07466440c37' ] ,
109109 [ { ref : 'refs/pull/15/merge' , checksum : undefined , format : 'query' , prHeadRef : false , sendGitQueryAsInput : false , buildxQuerySupport : true } , 'https://github.com/docker/actions-toolkit.git?ref=860c1904a1ce19322e91ac35af1ab07466440c37' ] ,
110- [ { ref : 'refs/tags/v1.0.0' , format : 'query' , prHeadRef : false , sendGitQueryAsInput : false , buildxQuerySupport : true } , 'https://github.com/docker/actions-toolkit.git?ref=refs/tags/v1.0.0&checksum =860c1904a1ce19322e91ac35af1ab07466440c37' ] ,
110+ [ { ref : 'refs/tags/v1.0.0' , checksum : undefined , format : 'query' , prHeadRef : false , sendGitQueryAsInput : false , buildxQuerySupport : true } , 'https://github.com/docker/actions-toolkit.git?ref=860c1904a1ce19322e91ac35af1ab07466440c37' ] ,
111111 [ { ref : 'refs/pull/15/merge' , checksum : undefined , format : 'query' , prHeadRef : true , sendGitQueryAsInput : false , buildxQuerySupport : true } , 'https://github.com/docker/actions-toolkit.git?ref=f11797113e5a9b86bd976329c5dbb8a8bfdfadfa' ] ,
112112 [ { ref : 'refs/pull/15/merge' , checksum : undefined , format : 'query' , prHeadRef : false , sendGitQueryAsInput : false , buildxQuerySupport : true , attrs : { checksum : 'cafebabe' } } , 'https://github.com/docker/actions-toolkit.git?ref=refs/pull/15/merge&checksum=cafebabe' ] ,
113- [ { ref : 'refs/heads/master' , format : 'query' , prHeadRef : false , sendGitQueryAsInput : false , buildxQuerySupport : true , subdir : 'subdir' } , 'https://github.com/docker/actions-toolkit.git?ref=refs/heads/master&checksum =860c1904a1ce19322e91ac35af1ab07466440c37&subdir=subdir' ] ,
114- [ { ref : 'refs/heads/master' , format : 'query' , prHeadRef : false , sendGitQueryAsInput : false , buildxQuerySupport : true , subdir : '.' } , 'https://github.com/docker/actions-toolkit.git?ref=refs/heads/master&checksum =860c1904a1ce19322e91ac35af1ab07466440c37' ] ,
113+ [ { ref : 'refs/heads/master' , checksum : undefined , format : 'query' , prHeadRef : false , sendGitQueryAsInput : false , buildxQuerySupport : true , subdir : 'subdir' } , 'https://github.com/docker/actions-toolkit.git?ref=860c1904a1ce19322e91ac35af1ab07466440c37&subdir=subdir' ] ,
114+ [ { ref : 'refs/heads/master' , checksum : undefined , format : 'query' , prHeadRef : false , sendGitQueryAsInput : false , buildxQuerySupport : true , subdir : '.' } , 'https://github.com/docker/actions-toolkit.git?ref=860c1904a1ce19322e91ac35af1ab07466440c37' ] ,
115115 [ { ref : 'refs/heads/master' , checksum : undefined , format : 'query' , prHeadRef : false , sendGitQueryAsInput : false , buildxQuerySupport : true , attrs : { ref : 'refs/tags/v1.0.0' , checksum : 'cafebabe' , subdir : 'subdir' , submodules : 'false' } } , 'https://github.com/docker/actions-toolkit.git?ref=refs/heads/master&checksum=cafebabe&subdir=subdir&submodules=false' ] ,
116- [ { ref : 'refs/heads/master' , format : 'query' , prHeadRef : false , sendGitQueryAsInput : false , buildxQuerySupport : true , subdir : 'subdir' , attrs : { 'keep-git-dir' : 'true' } } , 'https://github.com/docker/actions-toolkit.git?ref=refs/heads/master&checksum =860c1904a1ce19322e91ac35af1ab07466440c37&subdir=subdir&keep-git-dir=true' ] ,
117- [ { ref : 'refs/heads/master' , format : 'query' , prHeadRef : false , sendGitQueryAsInput : false , buildxQuerySupport : true , attrs : { submodules : 'true' } } , 'https://github.com/docker/actions-toolkit.git?ref=refs/heads/master&checksum =860c1904a1ce19322e91ac35af1ab07466440c37&submodules=true' ] ,
118- [ { ref : 'refs/heads/master' , format : 'query' , prHeadRef : false , sendGitQueryAsInput : false , buildxQuerySupport : true , attrs : { submodules : 'false' } } , 'https://github.com/docker/actions-toolkit.git?ref=refs/heads/master&checksum =860c1904a1ce19322e91ac35af1ab07466440c37&submodules=false' ] ,
119- [ { ref : 'refs/heads/master' , format : 'query' , prHeadRef : false , sendGitQueryAsInput : false , buildxQuerySupport : true , attrs : { 'keep-git-dir' : 'true' , submodules : 'false' } } , 'https://github.com/docker/actions-toolkit.git?ref=refs/heads/master&checksum =860c1904a1ce19322e91ac35af1ab07466440c37&keep-git-dir=true&submodules=false' ] ,
116+ [ { ref : 'refs/heads/master' , checksum : undefined , format : 'query' , prHeadRef : false , sendGitQueryAsInput : false , buildxQuerySupport : true , subdir : 'subdir' , attrs : { 'keep-git-dir' : 'true' } } , 'https://github.com/docker/actions-toolkit.git?ref=860c1904a1ce19322e91ac35af1ab07466440c37&subdir=subdir&keep-git-dir=true' ] ,
117+ [ { ref : 'refs/heads/master' , checksum : undefined , format : 'query' , prHeadRef : false , sendGitQueryAsInput : false , buildxQuerySupport : true , attrs : { submodules : 'true' } } , 'https://github.com/docker/actions-toolkit.git?ref=860c1904a1ce19322e91ac35af1ab07466440c37&submodules=true' ] ,
118+ [ { ref : 'refs/heads/master' , checksum : undefined , format : 'query' , prHeadRef : false , sendGitQueryAsInput : false , buildxQuerySupport : true , attrs : { submodules : 'false' } } , 'https://github.com/docker/actions-toolkit.git?ref=860c1904a1ce19322e91ac35af1ab07466440c37&submodules=false' ] ,
119+ [ { ref : 'refs/heads/master' , checksum : undefined , format : 'query' , prHeadRef : false , sendGitQueryAsInput : false , buildxQuerySupport : true , attrs : { 'keep-git-dir' : 'true' , submodules : 'false' } } , 'https://github.com/docker/actions-toolkit.git?ref=860c1904a1ce19322e91ac35af1ab07466440c37&keep-git-dir=true&submodules=false' ] ,
120120 // fragment format
121121 [ { ref : 'refs/heads/master' , format : 'fragment' , prHeadRef : false , sendGitQueryAsInput : false , buildxQuerySupport : true } , 'https://github.com/docker/actions-toolkit.git#860c1904a1ce19322e91ac35af1ab07466440c37' ] ,
122122 [ { ref : 'master' , format : 'fragment' , prHeadRef : false , sendGitQueryAsInput : false , buildxQuerySupport : true } , 'https://github.com/docker/actions-toolkit.git#860c1904a1ce19322e91ac35af1ab07466440c37' ] ,
123123 [ { ref : 'refs/pull/15/merge' , checksum : undefined , format : 'fragment' , prHeadRef : false , sendGitQueryAsInput : false , buildxQuerySupport : true } , 'https://github.com/docker/actions-toolkit.git#860c1904a1ce19322e91ac35af1ab07466440c37' ] ,
124124 [ { ref : 'refs/tags/v1.0.0' , format : 'fragment' , prHeadRef : false , sendGitQueryAsInput : false , buildxQuerySupport : true } , 'https://github.com/docker/actions-toolkit.git#860c1904a1ce19322e91ac35af1ab07466440c37' ] ,
125125 [ { ref : 'refs/pull/15/merge' , checksum : undefined , format : 'fragment' , prHeadRef : true , sendGitQueryAsInput : false , buildxQuerySupport : true } , 'https://github.com/docker/actions-toolkit.git#f11797113e5a9b86bd976329c5dbb8a8bfdfadfa' ] ,
126- [ { ref : 'refs/pull/15/merge' , checksum : undefined , format : 'fragment' , prHeadRef : false , sendGitQueryAsInput : false , buildxQuerySupport : true , attrs : { checksum : 'cafebabe' } } , 'https://github.com/docker/actions-toolkit.git#refs/pull/15/merge ' ] ,
126+ [ { ref : 'refs/pull/15/merge' , checksum : undefined , format : 'fragment' , prHeadRef : false , sendGitQueryAsInput : false , buildxQuerySupport : true , attrs : { checksum : 'cafebabe' } } , 'https://github.com/docker/actions-toolkit.git#cafebabe ' ] ,
127127 [ { ref : 'refs/heads/master' , checksum : undefined , format : 'fragment' , prHeadRef : false , sendGitQueryAsInput : false , buildxQuerySupport : true , attrs : { checksum : 'cafebabe' , subdir : 'subdir' , ref : 'refs/tags/v1.0.0' } } , 'https://github.com/docker/actions-toolkit.git#cafebabe:subdir' ] ,
128128 [ { ref : 'refs/heads/master' , format : 'fragment' , prHeadRef : false , sendGitQueryAsInput : false , buildxQuerySupport : true , attrs : { 'keep-git-dir' : 'true' } } , 'https://github.com/docker/actions-toolkit.git#860c1904a1ce19322e91ac35af1ab07466440c37' ] ,
129129 [ { ref : 'refs/heads/master' , format : 'fragment' , prHeadRef : false , sendGitQueryAsInput : false , buildxQuerySupport : true , subdir : 'subdir' } , 'https://github.com/docker/actions-toolkit.git#860c1904a1ce19322e91ac35af1ab07466440c37:subdir' ] ,
0 commit comments