You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

repo-manifest.js 1.8KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. module.exports = ((name, options)=>{
  2. return {
  3. reposervers : [
  4. 'http://git.bbh'
  5. , 'https://git.bbh.org.in'
  6. , '//172.16.0.27/repos'
  7. , 'https://github.com'
  8. ]
  9. // User can always add more branches and remotes as needed. Mainifest only occupies
  10. // well defined namespaces
  11. , remotes : [
  12. // these are both fetch and push remotes. Use push - remotes to override push.
  13. { 'chess' : `${options.reposerver}/chess/elxr.git` }
  14. , { 'baptistdev-public' : 'https://github.com/baptistdev/elxr.git' }
  15. // Multiple urls dont tell us the current origin which may be
  16. // different based on currently available/accessible based on device and client.
  17. // We just treat them as different remotes and merge as needed.
  18. //
  19. , { 'origin' : `${options.reposerver}/${options.username}/elxr.git` }
  20. , { 'origin-public' : `https://git.bbh.org.in/${options.username}/elxr.git` }
  21. , { 'origin-unc' : `//172.16.0.27/repos/${options.username}/elxr.git` }
  22. // , { `${options.username}` : `https://git.bbh.org.in/${options.username}/elxr.git` }
  23. ]
  24. , 'push-remotes' : [
  25. { 'chess' : 'no-pushing' }
  26. , { 'baptistdev-public' : 'no-pushing' }
  27. , { 'origin-public' : 'no-pushing' }
  28. ]
  29. // , 'fetch-remotes' : [] // Multiple fetch remotes are not supported by git.
  30. // We therefore need to use
  31. // - a pullall
  32. // - or branch alias for multiple remote branch tracking branch strategy.
  33. // -- This is however limited to corresponding branch names
  34. // tracking branches.
  35. // We at least need one branch for each remote that we wish to track.
  36. // , 'tracking-branches' : [
  37. // { master : ['origin/master', 'chess/master'] }
  38. // ]
  39. }
  40. })