Projects STRLCPY git-open Commits 9d536d85
🤬
Revision indexing in progress... (symbol navigation in revisions will be accurate after indexed)
  • ■ ■ ■ ■ ■ ■
    git-open
    skipped 10 lines
    11 11  git rev-parse --is-inside-work-tree &>/dev/null
    12 12   
    13 13  if [[ $? != 0 ]]; then
    14  - echo "Not a git repository."
     14 + echo "Not a git repository." 1>&2
    15 15   exit 1
    16 16  fi
    17 17   
    skipped 8 lines
    26 26   if [[ $currentBranch =~ $regex ]]; then
    27 27   issue=${currentBranch#*#}
    28 28   else
    29  - echo "'git open issue' expect branch naming to be issues/#123"
    30  - exit 0
     29 + echo "'git open issue' expect branch naming to be issues/#123" 1>&2
     30 + exit 1
    31 31   fi
    32 32   else
    33 33   remote="$1"
    skipped 4 lines
    38 38   
    39 39  giturl=$(git config --get "$remote_url")
    40 40  if [ -z "$giturl" ]; then
    41  - echo "$remote_url not set."
     41 + echo "$remote_url not set." 1>&2
    42 42   exit 1
    43 43  fi
    44 44   
    skipped 85 lines
Please wait...
Page is in error, reload to recover