diff options
Diffstat (limited to 'lib/git/branch.rb')
-rw-r--r-- | lib/git/branch.rb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/git/branch.rb b/lib/git/branch.rb index 7cef94e..f9106ab 100644 --- a/lib/git/branch.rb +++ b/lib/git/branch.rb @@ -21,15 +21,18 @@ module Git end def gcommit - @gcommit = @base.object(name) if !@gcommit + @gcommit = @base.object(@full) if !@gcommit @gcommit end def checkout check_if_create - @base.checkout(@name) + @base.checkout(@full) end + def archive(file, opts = {}) + @base.lib.archive(@full, file, opts) + end # g.branch('new_branch').in_branch do # # create new file |