File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ export default class Proxy {
5151 const allowedList : Repo [ ] = await getRepos ( ) ;
5252
5353 defaultAuthorisedRepoList . forEach ( async ( x ) => {
54- const found = allowedList . find ( ( y ) => y . project === x . project && x . name === y . name ) ;
54+ const found = allowedList . find ( ( y ) => y . url === x . url ) ;
5555 if ( ! found ) {
5656 const repo = await createRepo ( x ) ;
5757 await addUserCanPush ( repo . _id ! , 'admin' ) ;
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ import Proxy from '../src/proxy';
1818const TEST_DEFAULT_REPO = {
1919 url : 'https://github.com/finos/git-proxy.git' ,
2020 name : 'git-proxy' ,
21- project : 'finos/git-proxy ' ,
21+ project : 'finos' ,
2222 host : 'github.com' ,
2323 proxyUrlPrefix : '/github.com/finos/git-proxy.git' ,
2424} ;
You can’t perform that action at this time.
0 commit comments