home

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

src.osp.forks.mr (830B)


      1 # -*- mode: sh -*-
      2 include = cat ${HOME}/.config/mr
      3 
      4 [DEFAULT]
      5 lib =
      6     git_fork_clone() {
      7         REPO_NAME=${MR_REPO//$(dirname ${MR_CONFIG})\/}
      8         URL=git@github.com:vdemeester/tektoncd-${REPO_NAME}.git
      9         UPSTREAM_URL=https://github.com/tektoncd/${REPO_NAME}.git
     10         # FIXME(vdemeester) should probably be https
     11         OPENSHIFT_URL=git@github.com:openshift/tektoncd-${REPO_NAME}.git
     12         echo "URL         : $URL"
     13         echo "UPSTREAM_URL: $UPSTREAM_URL"
     14         echo "OPENSHIFT_URL: $OPENSHIFT_URL"
     15         git clone $URL $MR_REPO
     16         cd $MR_REPO
     17         git remote add upstream $UPSTREAM_URL
     18         git remote add openshift $OPENSHIFT_URL
     19         git fetch -p --all
     20     }
     21 checkout = git_fork_clone
     22 # Do not try to rebase, …
     23 git_u = git fetch -p --all
     24 
     25 [catalog]
     26 [operator]
     27 [pipeline]
     28 [triggers]