Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

on git-sd init, if we have an url for origin, and the url match githu…

…b, clone issues from this repo at the same time
  • Loading branch information...
commit d77ab26d82d0a3ff2dfe772a75a0bb903cc3b48f 1 parent 6506454
Franck Cuny authored

Showing 1 changed file with 8 additions and 0 deletions. Show diff stats Hide diff stats

  1. +8 0 bin/git-sd
8 bin/git-sd
@@ -39,6 +39,14 @@ if [ "$1" = "init" ] || [ "$1" = "clone" ] && [ "$2" != "-h" ] \
39 39 echo ""
40 40 SD_REPO="$replica" sd config user.email-address "$gitemail"
41 41 fi
  42 + gitorigin=$(git config remote.origin.url 2>/dev/null)
  43 + if [ `echo $gitorigin | grep github` ]; then
  44 + echo "Cloning issues from $gitorigin:"
  45 + echo ""
  46 + echo " sd clone --from github:$gitorigin"
  47 + echo ""
  48 + SD_REPO="$replica" sd clone --from "github:$gitorigin"
  49 + fi
42 50 fi
43 51
44 52 SD_REPO="$replica" exec sd "$@"

0 comments on commit d77ab26

Please sign in to comment.
Something went wrong with that request. Please try again.