Permalink
Browse files

repo instead of @repo in Branch section.

  • Loading branch information...
1 parent 49bec48 commit 69fbde2876bfad8e33d0c53e0401bf088980a324 @DawidJanczak DawidJanczak committed Mar 23, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 README.md
View
@@ -382,15 +382,15 @@ Rugged::Branch.each_name(repo, :remote).sort
Look up branches and get attributes:
```ruby
-branch = Rugged::Branch.lookup(@repo, "master")
+branch = Rugged::Branch.lookup(repo, "master")
branch.name # => 'master'
branch.canonical_name # => 'refs/heads/master'
```
Look up the oid for the tip of a branch:
```ruby
-Rugged::Branch.lookup(@repo, "master").tip.oid
+Rugged::Branch.lookup(repo, "master").tip.oid
# => "36060c58702ed4c2a40832c51758d5344201d89a"
```

0 comments on commit 69fbde2

Please sign in to comment.