Skip to content

Commit

Permalink
hm, guess we actually need this
Browse files Browse the repository at this point in the history
  • Loading branch information
schacon authored and rtomayko committed Jun 8, 2011
1 parent a127fac commit 1d2e07c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/grit/repo.rb
Expand Up @@ -645,6 +645,12 @@ def index
Index.new(self)
end

def update_ref(head, commit_sha)
return nil if !commit_sha || (commit_sha.size != 40)
self.git.fs_write("refs/heads/#{head}", commit_sha)
commit_sha
end

# Rename the current repository directory.
# +name+ is the new name
#
Expand Down

0 comments on commit 1d2e07c

Please sign in to comment.