#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 ```
登录 并参与到对话中。
未选择里程碑
未指派成员
1 名参与者
正在加载...
取消
保存
这个人很懒,什么都没留下。