Skip to content
This repository has been archived by the owner on Oct 5, 2023. It is now read-only.

Commit

Permalink
oops track origin/branch
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean Walbran committed Jun 22, 2015
1 parent a4b69b2 commit e24a527
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/socialcast-git-extensions/git.rb
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def share_branch(branch)
end

def track_branch(branch)
run_cmd "git branch --track #{branch}"
run_cmd "git branch --track origin/#{branch}"
end

# integrate a branch into a destination aggregate branch
Expand Down
8 changes: 4 additions & 4 deletions spec/cli_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ def stub_message(message_body, params = {})
"git push origin --delete staging",
"git checkout -b staging",
"git push origin staging",
"git branch --track staging",
"git branch --track origin/staging",
"git checkout master"
])
end
Expand All @@ -404,7 +404,7 @@ def stub_message(message_body, params = {})
"git push origin --delete qa",
"git checkout -b qa",
"git push origin qa",
"git branch --track qa",
"git branch --track origin/qa",
"git checkout master"
])
end
Expand All @@ -426,7 +426,7 @@ def stub_message(message_body, params = {})
"git push origin --delete qa",
"git checkout -b qa",
"git push origin qa",
"git branch --track qa",
"git branch --track origin/qa",
"git checkout master",
"git checkout master",
"git branch -D last_known_good_master",
Expand All @@ -436,7 +436,7 @@ def stub_message(message_body, params = {})
"git push origin --delete last_known_good_qa",
"git checkout -b last_known_good_qa",
"git push origin last_known_good_qa",
"git branch --track last_known_good_qa",
"git branch --track origin/last_known_good_qa",
"git checkout master"
])
end
Expand Down

0 comments on commit e24a527

Please sign in to comment.