Can git submodule update be made to fetch tags in submodules?

后端 未结 4 1001
慢半拍i
慢半拍i 2021-02-04 02:57

I have a git repository which uses a submodule which I\'d like to point at an annotated tag, but when I do git submodule update new tags don\'t get fetched. I can g

4条回答
  •  天命终不由人
    2021-02-04 03:16

    you can script it so that you do a (cd path-to-submod && git fetch)

    wrapping the commands in brackets puts the environment in a subshell, meaning, you don't have to CD back out to where you were.

    Hope this helps

提交回复
热议问题