Skip to content

Commit

Permalink
Use rugged for cloning repos
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew committed Feb 7, 2024
1 parent c5ef53b commit 6bdbb25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/repository.rb
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def count_commits
else
begin
Dir.mktmpdir do |dir|
`GIT_TERMINAL_PROMPT=0 git clone -b #{default_branch} --single-branch #{git_clone_url} #{dir}`
Rugged::Repository.clone_at(git_clone_url, dir)
last_commit = `git -C #{dir} rev-parse HEAD`.strip
output = `git -C #{dir} shortlog -s -n -e --no-merges HEAD`

Expand Down

0 comments on commit 6bdbb25

Please sign in to comment.