#20 Update strategy

오픈
jcolomb3 년 전을 오픈 · 0개의 코멘트
julien colomb 코멘트됨, 3 년 전

A simple solution:

  • add a .tonic submodule in tonic template repo, content will always link to one specific repo (no copy)
  • add the scripts in that submodule
  • in the template add a sync script that would call that one:

    #!/usr/bin/env bash
    #
    # Upload changes from inside repository using GIN CLI
    # Works with submodules.
    # Assumes gin init was performed or the repository was downloaded via gin get
    
    
    
    
    
    
    
    loc=$(dirname $0)
    projectdir=$(git -C ${loc} rev-parse --show-toplevel)
    
    pushd ${loc} > /dev/null
    
    source ./.tonic/sync
    
A simple solution: - add a .tonic submodule in tonic template repo, content will always link to one specific repo (no copy) - add the scripts in that submodule - in the template add a sync script that would call that one: ``` #!/usr/bin/env bash # # Upload changes from inside repository using GIN CLI # Works with submodules. # Assumes gin init was performed or the repository was downloaded via gin get loc=$(dirname $0) projectdir=$(git -C ${loc} rev-parse --show-toplevel) pushd ${loc} > /dev/null source ./.tonic/sync ```
로그인하여 이 대화에 참여
마일스톤 없음
담당자 없음
참여자 1명
로딩중...
취소
저장
아직 콘텐츠가 없습니다.