Skip to main content
How are we doing? Please help us improve Stack Overflow. Take our short survey
Filter by
Sorted by
Tagged with
0 votes
1 answer
54 views

def serve_git_repo(temp_dir) repo = Rugged::Repository.new(temp_dir) response.headers["Vary"] = "Accept" response.headers["Connection"] = "keep-alive&...
David Roy's user avatar
0 votes
1 answer
410 views

Below is a Ruby program that is supposed to verify a connection with my GitHub repos, private and public. The ssh key is the correct one, and it has no passphrase. However, ssh is apparently not used, ...
Mike Slinn's user avatar
  • 8,488
2 votes
1 answer
58 views

I need to commit the current state of the workdir (i.e. the files and their content as stored on the filesystem) into a non-checked out branch. It is important that this is done in a stateless way ...
gioele's user avatar
  • 10.3k
0 votes
1 answer
58 views

I'm trying to use rugged (ruby) to cherry pick a commit on a branch like this: repo.fetch('origin', ['origin/stable/branch_name'],credentials: rugged_credentials) repo.reset('origin/stable/branch_name'...
Kerby82's user avatar
  • 5,186
1 vote
1 answer
760 views

OS: Ubuntu 18.04 GCC version: gcc version 7.4.0 (Ubuntu 7.4.0-1ubuntu1~18.04.1) JRuby version: 9.2.8.0 Ruby version: 2.5.3 Issue origin: Trying to install pronto gem (version 0.11.0) While running ...
Syed Mohammad Ibrahim's user avatar
0 votes
0 answers
321 views

I'm trying to install pronto gem and one of its dependency (rugged) is failing to build. So, trying to run gem install rugged gives me such output https://pastebin.com/m6v2RgQt I've checked that I ...
Gleb's user avatar
  • 93
2 votes
1 answer
208 views

I'm working with a ruby script that execute the following git command on a given git repository. branches = `git branch -a --contains #{tag_name}` This approach has some drawbacks with command ...
Fabio's user avatar
  • 19.3k
9 votes
4 answers
3k views

I want to use git's partialClone feature. In this answer I saw the git clone --filter=tree:none <repo> command. But when trying to execute on github, the prompt warning: filtering not ...
Ph0rse's user avatar
  • 93
1 vote
2 answers
674 views

I'm using Rugged, the libgit2 binding for Ruby. I have seen that you can call the Repository#lookup method to get the object at a given SHA hash in a git repository. The thing is, I don't know the ...
Ben Wiley's user avatar
1 vote
0 answers
331 views

Related to git - how to get default branch? I'm trying to port a Bash script to Ruby. The script uses git symbolic-ref --short HEAD to get a repo's default branch. Is there a way to combine rugged'...
Katrin Leinweber's user avatar
3 votes
1 answer
331 views

How do I pull changes from remote repo using Rugged ruby gem. Most of question on this topic are outdated as api has changed. I am using a simple repo with nothing complex. I found below code on one ...
Robert's user avatar
  • 31
2 votes
1 answer
221 views

I'm working on a project and one of the requirements is the need to call git cherry command to get some differences between on branch and the other - (note this is not git cherry-pick). I was ...
RobisonSantos's user avatar
1 vote
1 answer
347 views

when using the rugged git library how can I apply that diff to my dest branch as a commit?. # @param src [Rugged::Object] - the rugged object or string to compare from # @param dst [Rugged::...
Corey Osman's user avatar
2 votes
2 answers
217 views

I try to get the commits that have been done after a date in a local copy of a git repo and then extract the related modifications on the files. If I would like to compare this to a git command, It ...
cedlemo's user avatar
  • 3,384
0 votes
2 answers
170 views

I'm trying to remove an array of directories in a git repo and make 1 commit for each directory removed. I'm using Rugged and Gitlab_git (which is more or less just a wrapper around Rugged) and so far ...
Jtgrenz's user avatar
  • 611

15 30 50 per page
1
2 3 4 5