Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

repo instead of @repo in Branch section.

  • Loading branch information...
commit 69fbde2876bfad8e33d0c53e0401bf088980a324 1 parent 49bec48
@DawidJanczak DawidJanczak authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 README.md
View
4 README.md
@@ -382,7 +382,7 @@ 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'
```
@@ -390,7 +390,7 @@ 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"
```
Please sign in to comment.
Something went wrong with that request. Please try again.