#20 Update strategy

開啟中
jcolomb3 年之前創建 · 0 條評論

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 ```
Sign in to join this conversation.
未選擇里程碑
未指派成員
1 參與者
正在加載...
取消
保存
尚未有任何內容