Permalink
Browse files

LET'S fall BACK to ORIGIN and DO something pleasant

  • Loading branch information...
aanand committed Mar 4, 2010
1 parent a7d3332 commit fe51ff1ba3b79d277c0ec9e24e13cf3eae173ebd
Showing with 2 additions and 5 deletions.
  1. +2 −5 lib/git-up.rb
View
@@ -47,11 +47,8 @@ def run
end
def remote_for_branch(branch)
- if remote_name = @repo.config["branch.#{branch.name}.remote"]
- @repo.remotes.find { |r| r.name == "#{remote_name}/#{branch.name}" }
- else
- nil
- end
+ remote_name = @repo.config["branch.#{branch.name}.remote"] || "origin"
+ @repo.remotes.find { |r| r.name == "#{remote_name}/#{branch.name}" }
end
def with_stash

0 comments on commit fe51ff1

Please sign in to comment.