-
Paul Irish committed with GitHub 7 years ago1 parent f3dbce97
Revision indexing in progress... (symbol navigation in revisions will be accurate after indexed)
-
-
-
skipped 103 lines 104 104 assert_output "https://github.com/paulirish/git-open/tree/just-50%25" 105 105 } 106 106 107 + @test "basic: tracked remote is default" { 108 + # https://github.com/paulirish/git-open/issues/65 109 + 110 + # create a local git repo I can push to 111 + remote_name="sandboxremote" 112 + remote_url="[email protected]:userfork/git-open.git" 113 + 114 + # ideally we'd set a real upstream branch, but that's not possible without 115 + # pull/push'ing over the network. So we're cheating and just setting the 116 + # branch.<branch>.remote config 117 + # https://github.com/paulirish/git-open/pull/88#issuecomment-339813145 118 + git remote add $remote_name $remote_url 119 + git config --local --add branch.master.remote $remote_name 120 + 121 + run ../git-open 122 + assert_output "https://github.com/userfork/git-open" 123 + 124 + git config --local --add branch.master.remote origin 125 + run ../git-open 126 + assert_output "https://github.com/paulirish/git-open" 127 + } 107 128 108 129 109 130 ## skipped 147 lines