Permalink
Browse files

hm, guess we actually need this

  • Loading branch information...
1 parent a127fac commit 1d2e07ca0be00062fa77b3d916c6293456b81939 @schacon schacon committed with rtomayko May 28, 2011
Showing with 6 additions and 0 deletions.
  1. +6 −0 lib/grit/repo.rb
View
@@ -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
#

0 comments on commit 1d2e07c

Please sign in to comment.