Questions tagged [rugged]

Ruby open source bindings for libgit2, a native git library

Rugged is a library for accessing libgit2 in Ruby. It gives you the speed and portability of libgit2 with the beauty of the Ruby language.

Rugged gives you access to the many parts of a Git repository. You can read and write objects, walk a tree, access the staging area, and lots more.

Online resources

70 questions
0
votes
1 answer

clone_at and fetch returning Rugged::NetworkError: This transport isn't implemented. Sorry

So I have been attempting to incorporate the ability to both fetch and clone repo's using rugged. I have tried the following repo.fetch("origin") and this remote = Rugged::Remote.lookup(repo, remote_name) remote.connect(:fetch) also…
tfredett
  • 21
  • 4
0
votes
1 answer

Creating new Tags

Just wondering if it is possible to create a new GIT tag using Rugged. if so, an example would be greatly appreciated. I'm basically just trying to create/move/delete tags on commit oids.
0
votes
1 answer

Why does the file get removed when commiting second time via rugged?

I want to store text files in a Git repo. I am using Ruby rugged gem 0.19.0 for this. The problem is that adding a second file f2 seems to automatically delete the first one f1. I have isolated the code to reproduce this (basically code straight…
0
votes
1 answer

Rugged method equivalent to Grit's Repository#status

Is there a method in Rugged (v0.19.0) equivalent to Grit's Repository#status? I've found a Repository#status in Rugged too but it does not contain the info* I'm searching. *Which staged files have additions and which new files were introduced in the…
0
votes
1 answer

Can't access to new_start, old_start etc. properties of hunk

I was using older version of rugged for long time and now I would like to upgrade to newest version. In development branch I've discovered that something is wrong with hunk class properties like: old_start, new_start, old_lines, new_lines - I can't…
Piotr
  • 21
  • 2
0
votes
1 answer

Error occuring when trying to clone github repo with SSH credentials using rugged

When trying to clone a remote repo with Rugged, I keep getting the error Failed to authenticate SSH session: Unable to open public key file I add my ssh credentials fine, but when I come to doing the clone the above error occurs. cred =…
Gabriel Baker
  • 1,209
  • 11
  • 21
0
votes
1 answer

How do I read a blob chunk by chunk in ruby rugged?

I'd like to be able to stream data through sinatra by reading data in chunks from a blob from Rugged. But it doesn't seem like blob supports a read(), and content() doesn't have an offset.
Wilhelm
  • 6,506
  • 5
  • 30
  • 26
0
votes
2 answers

Getting Rugged::NetworkError on #connect

I tried to implement fetch and this exception was raised: Rugged::NetworkError: This transport isn't implemented. Sorry I am able to retrieve a remote instance: remote = Rugged::Remote.lookup(repo, remote_name) remote.connect(:fetch) # =>…
rhodee
  • 1,257
  • 1
  • 14
  • 27
0
votes
1 answer

Rugged error on Windows

When I ran the following: r = Rugged::Repository.new('') I got the following error: Rugged::OSError: The global/xdg file 'config' doesn't exist: The system cannot find the path specified. How should I resolve it? I'm using rugged 0.19.0…
G S
  • 35,511
  • 22
  • 84
  • 118
0
votes
2 answers

repo.path returns nothing even after creating an initializing a rugged repo

I created a git repository using the below code in rugged.. require 'rugged' $repopath='D:\Test12' Rugged::Repository.init_at($repopath, true) repo = Rugged::Repository.new($repopath) puts repo.path however, I didn't get any output when I execute…
Ahmad Osama
  • 91
  • 1
  • 11
1 2 3 4
5