diff --git a/lib/rbpkg/repo.rb b/lib/rbpkg/repo.rb
index 067b018..1abfd2d 100644
--- a/lib/rbpkg/repo.rb
+++ b/lib/rbpkg/repo.rb
@@ -4,7 +4,6 @@ load "#{File.dirname(__FILE__)}/sha256.rb"
class Rbpkg::Repo
@@remote_default = "origin"
- @@branch_default = "master"
def autogen
verbose 3, "repo(#{name.inspect}).autogen"
@@ -21,10 +20,6 @@ class Rbpkg::Repo
""
end
- def branch
- @@branch_default
- end
-
def build
verbose 3, "repo(#{name.inspect}).build"
if ! tag_present?("build-done")
@@ -48,10 +43,10 @@ class Rbpkg::Repo
def checkout
verbose(3, "repo(#{name.inspect}).checkout")
- sh_branch=sh_quote(tree)
+ sh_tree=sh_quote(tree)
cmd! "cd #{sh_quote(src_dir!)} && git fetch --all"
cmd! "cd #{sh_quote(src_dir!)} && git reset --hard"
- cmd! "cd #{sh_quote(src_dir!)} && git checkout #{sh_branch} --"
+ cmd! "cd #{sh_quote(src_dir!)} && git checkout #{sh_tree} --"
cmd! "cd #{sh_quote(src_dir!)} && git reset --hard"
cmd! "cd #{sh_quote(src_dir!)} && git submodule update"
end