Skip to content

Commit 57b46eb

Browse files
author
Edward Thomson
authored
Merge pull request #687 from libgit2/ethomson/update_libgit2
Update libgit2 to b31b236...
2 parents 003d075 + 2d95c24 commit 57b46eb

File tree

4 files changed

+8
-3
lines changed

4 files changed

+8
-3
lines changed

ext/rugged/extconf.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
$CFLAGS << " -O3" unless $CFLAGS[/-O\d/]
1313
$CFLAGS << " -Wall -Wno-comment"
1414

15+
cmake_flags = [ ENV["CMAKE_FLAGS"] ]
16+
cmake_flags << "-DUSE_SHA1DC=ON" if with_config("sha1dc")
17+
1518
def sys(cmd)
1619
puts " -- #{cmd}"
1720
unless ret = xsystem(cmd)
@@ -77,7 +80,7 @@ def sys(cmd)
7780
Dir.chdir("build") do
7881
# On Windows, Ruby-DevKit is MSYS-based, so ensure to use MSYS Makefiles.
7982
generator = "-G \"MSYS Makefiles\"" if Gem.win_platform?
80-
sys("cmake .. -DBUILD_CLAR=OFF -DTHREADSAFE=ON -DBUILD_SHARED_LIBS=OFF -DCMAKE_C_FLAGS=-fPIC -DCMAKE_BUILD_TYPE=RelWithDebInfo #{generator}")
83+
sys("cmake .. -DBUILD_CLAR=OFF -DTHREADSAFE=ON -DBUILD_SHARED_LIBS=OFF -DCMAKE_C_FLAGS=-fPIC -DCMAKE_BUILD_TYPE=RelWithDebInfo #{cmake_flags.join(' ')} #{generator}")
8184
sys(MAKE)
8285

8386
# "normal" libraries (and libgit2 builds) get all these when they build but we're doing it

lib/rugged/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
# For full terms see the included LICENSE file.
55

66
module Rugged
7-
Version = VERSION = '0.26.0b3'
7+
Version = VERSION = '0.26.0b5'
88
end

test/reference_test.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,12 @@ def test_list_references
2929
"refs/heads/ident",
3030
"refs/heads/long-file-name",
3131
"refs/heads/master",
32+
"refs/heads/merge-conflict",
3233
"refs/heads/packed",
3334
"refs/heads/packed-test",
3435
"refs/heads/subtrees",
3536
"refs/heads/test",
37+
"refs/heads/testrepo-worktree",
3638
"refs/tags/e90810b",
3739
"refs/tags/foo/bar",
3840
"refs/tags/foo/foo/bar",

vendor/libgit2

Submodule libgit2 updated 147 files

0 commit comments

Comments
 (0)