github.com/trevoraustin/hub@v2.2.0-preview1.0.20141105230840-96d8bfc654cc+incompatible/features/remote_add.feature (about) 1 Feature: hub remote add 2 Background: 3 Given I am in "dotfiles" git repo 4 5 Scenario: Add origin remote for my own repo 6 Given I am "mislav" on GitHub.com 7 And there are no remotes 8 When I successfully run `hub remote add origin` 9 Then the url for "origin" should be "git://github.com/mislav/dotfiles.git" 10 And there should be no output 11 12 Scenario: Add private origin remote for my own repo 13 Given I am "mislav" on GitHub.com 14 And there are no remotes 15 When I successfully run `hub remote add -p origin` 16 Then the url for "origin" should be "git@github.com:mislav/dotfiles.git" 17 And there should be no output 18 19 Scenario: Unchanged public remote add 20 When I successfully run `hub remote add origin http://github.com/defunkt/resque.git` 21 Then the url for "origin" should be "http://github.com/defunkt/resque.git" 22 And there should be no output 23 24 Scenario: Unchanged private remote add 25 When I successfully run `hub remote add origin git@github.com:defunkt/resque.git` 26 Then the url for "origin" should be "git@github.com:defunkt/resque.git" 27 And there should be no output 28 29 Scenario: Unchanged local path remote add 30 When I successfully run `hub remote add myremote ./path` 31 Then the git command should be unchanged 32 And there should be no output 33 34 Scenario: Unchanged local absolute path remote add 35 When I successfully run `hub remote add myremote /path` 36 Then the git command should be unchanged 37 And there should be no output 38 39 Scenario: Unchanged remote add with host alias 40 When I successfully run `hub remote add myremote server:/git/repo.git` 41 Then the git command should be unchanged 42 And there should be no output 43 44 Scenario: Add new remote for Enterprise repo 45 Given "git.my.org" is a whitelisted Enterprise host 46 And the "origin" remote has url "git@git.my.org:mislav/topsekrit.git" 47 When I successfully run `hub remote add another` 48 Then the url for "another" should be "git@git.my.org:another/topsekrit.git" 49 And there should be no output 50 51 Scenario: Add public remote 52 When I successfully run `hub remote add mislav` 53 Then the url for "mislav" should be "git://github.com/mislav/dotfiles.git" 54 And there should be no output 55 56 Scenario: Add private remote 57 When I successfully run `hub remote add -p mislav` 58 Then the url for "mislav" should be "git@github.com:mislav/dotfiles.git" 59 And there should be no output 60 61 Scenario: Add remote with arguments 62 When I successfully run `hub remote add -f mislav` 63 Then "git remote add -f mislav git://github.com/mislav/dotfiles.git" should be run 64 And there should be no output 65 66 Scenario: Add HTTPS protocol remote 67 Given HTTPS is preferred 68 When I successfully run `hub remote add mislav` 69 Then the url for "mislav" should be "https://github.com/mislav/dotfiles.git" 70 And there should be no output 71 72 Scenario: Add named public remote 73 When I successfully run `hub remote add mm mislav` 74 Then the url for "mm" should be "git://github.com/mislav/dotfiles.git" 75 And there should be no output 76 77 Scenario: set-url 78 Given the "origin" remote has url "git://github.com/evilchelu/dotfiles.git" 79 When I successfully run `hub remote set-url origin mislav` 80 Then the url for "origin" should be "git://github.com/mislav/dotfiles.git" 81 And there should be no output 82 83 Scenario: Add public remote including repo name 84 When I successfully run `hub remote add mislav/dotfilez.js` 85 Then the url for "mislav" should be "git://github.com/mislav/dotfilez.js.git" 86 And there should be no output 87 88 Scenario: Add named public remote including repo name 89 When I successfully run `hub remote add mm mislav/dotfilez.js` 90 Then the url for "mm" should be "git://github.com/mislav/dotfilez.js.git" 91 And there should be no output 92 93 Scenario: Add named private remote 94 When I successfully run `hub remote add -p mm mislav` 95 Then the url for "mm" should be "git@github.com:mislav/dotfiles.git" 96 And there should be no output 97 98 Scenario: Add private remote including repo name 99 When I successfully run `hub remote add -p mislav/dotfilez.js` 100 Then the url for "mislav" should be "git@github.com:mislav/dotfilez.js.git" 101 And there should be no output 102 103 Scenario: Add named private remote including repo name 104 When I successfully run `hub remote add -p mm mislav/dotfilez.js` 105 Then the url for "mm" should be "git@github.com:mislav/dotfilez.js.git" 106 And there should be no output