git-subtree pull complications

后端 未结 4 1567
深忆病人
深忆病人 2020-12-14 16:49

We have been trying to get git-subtree working on a project (with git version 1.7.9.4) and have run into a bit of a complication. Someone else previous added the subtree wit

4条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-14 17:15

    This also happens, if the current clone is a partial clone (e.g., when using --depth=1). This is the default at GitHub Actions V2.

    In the case of GitHub actions, this can be configured when using fetch-depth: 0 at the checkout step:

    jobs:
      test:
        runs-on: ubuntu-latest
        steps:
          - name: Checkout source
            uses: actions/checkout@v2
            with:
              ref: master
              fetch-depth: 0
    

提交回复
热议问题