lib/shagit.rb in shagit-0.3.0 vs lib/shagit.rb in shagit-0.3.1

- old
+ new

@@ -25,11 +25,10 @@ @repositories = Array.new Dir.foreach(config_data.working_dir) do |path| fullpath = "#{config_data.working_dir}/#{path}" if Shagit.is_it_a_git_repo?(fullpath) - puts "adding repository: #{fullpath}" # create a new Grit repository object if a directory has been found that looks to be a folder containing a git repository @repositories << Repo.new(fullpath) unless (path == '.git') end end end @@ -38,13 +37,10 @@ def self.create_repo(full_repo_name) # if the repository already exists, simply return 'false' if FileTest.directory?(full_repo_name) false else - puts "creating bare repository at: #{full_repo_name}" - #new_repo = Grit::Repo.init_bare(full_repo_name) - puts "pwd: #{Dir.pwd}" - new_repo = Grit::Repo.init_bare(full_repo_name) + Grit::Repo.init_bare(full_repo_name) end end # deletes an existing repository def self.delete_repo!(full_repo_name) \ No newline at end of file