weixin_39837124
weixin_39837124
2021-01-11 16:30

https for wordpress develop repo

I saw recently that there was an update to provision.sh in the 1.2 update to turn all the git:// urls to https:// which was awesome. For the longest time I just made the switch in a provision-custom file for my firewall here in the office.

The only repo that seemed to missed the cut was for the wordpress-develop. I switched the repo to wordpress-develop, as it seems to be a mirror of the private git repo from WP. Is there any official mirror or resource we can use? Is it kosher to PR the other repo in for HTTPS or just keep it custom until WP changes it's mind?

该提问来源于开源项目:Varying-Vagrant-Vagrants/VVV

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

9条回答

  • weixin_39812065 weixin_39812065 4月前

    This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

    点赞 评论 复制链接分享
  • weixin_39606003 weixin_39606003 4月前

    The WordPress develop Git repo is supposed to be mirrored up on the official WordPress GitHub org very soon. Matt said in the State of the Word that GitHub would happen this year. Once that happens, then the HTTPS protocol can be used for the URL on the GitHub mirror.

    Our mirror is not automatically updating. When working on a new featue branch I'm currently pulling the latest commits from upstream and pushing them up to our mirror. So it only updates manually right now.

    点赞 评论 复制链接分享
  • weixin_39837124 weixin_39837124 4月前

    duly noted. I don't have an option behind the firewall and I don't do any wordpress-develop stuff so I guess it's okay for now. Thanks for the reply.

    点赞 评论 复制链接分享
  • weixin_39817391 weixin_39817391 4月前

    And to clarify (I think) - If I remember right, I tried checking out the develop.git repository with HTTPS and it failed as not a valid git repo.

    点赞 评论 复制链接分享
  • weixin_39837124 weixin_39837124 4月前

    yeah I should have said that I tried that at first, that's why I switched in my custom provision. I thought someone smarter than me had the inside line but it's all good.

    点赞 评论 复制链接分享
  • weixin_39606003 weixin_39606003 4月前

    Oh, I should note how I have this configured:

     sh
    git remote set-url origin git://develop.git.wordpress.org/
    git remote set-url origin --push https://github.com/xwp/wordpress-develop.git
    

    So what this allows me to do is:

    
    git checkout master && git pull && git push
    

    And it will always pull commits from the official Git repo, and then push commits up to our mirror.

    I realize this doesn't help you because you can't pull from the git protocol anyway.

    点赞 评论 复制链接分享
  • weixin_39817391 weixin_39817391 4月前

    Ticketed :) https://meta.trac.wordpress.org/ticket/780

    点赞 评论 复制链接分享
  • weixin_39837124 weixin_39837124 4月前

    Thanks! Looking forward to it.

    点赞 评论 复制链接分享
  • weixin_39817391 weixin_39817391 4月前

    I'm going to close this out now that the wordpress-develop config for VVV has been moved to its own repo in #980. I don't think we're going to see HTTPS on this repo for a while. It should be easier at this point to setup a config that pulls a cloned copy of the develop.wordpress repo instead.

    See also: https://meta.trac.wordpress.org/ticket/633

    点赞 评论 复制链接分享

相关推荐