Projects STRLCPY git-open Commits 7449bfa7
🤬
Revision indexing in progress... (symbol navigation in revisions will be accurate after indexed)
  • ■ ■ ■ ■ ■
    git-open
    skipped 48 lines
    49 49  remote=${remote:-$tracked_remote}
    50 50  remote=${remote:-"origin"}
    51 51   
    52  -# @TODO ls-remote will also expand "insteadOf" items `giturl=$(git ls-remote --get-url $remote)``
    53  -giturl=$(git config --get "remote.${remote}.url")
     52 +giturl=$(git ls-remote --get-url "$remote")
    54 53   
    55 54  if [[ -z "$giturl" ]]; then
    56 55   echo "Git remote is not set for $remote" 1>&2
    skipped 127 lines
  • ■ ■ ■ ■ ■ ■
    test/git-open.bats
    skipped 35 lines
    36 36  }
    37 37   
    38 38  ##
     39 +## url handling
     40 +##
     41 + 
     42 +@test "url: insteadOf handling" {
     43 + git config --global url.http://example.com/.insteadOf ex:
     44 + git remote set-url origin ex:example.git
     45 + git checkout -B master
     46 + run ../git-open
     47 + assert_output "http://example.com/example"
     48 +}
     49 + 
     50 +##
    39 51  ## GitHub
    40 52  ##
    41 53   
    skipped 368 lines
Please wait...
Page is in error, reload to recover