rugged 1.9.5.1 → 1.9.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 87954b1bd8f2dc778010ceea1dd1bf374867f1abf36ec9bf52f69303b7428612
4
- data.tar.gz: 3a693b4dcf346904b3e975ab601c193e6ea7dffb92a5e99a24a69a7ba532c208
3
+ metadata.gz: e249f15c122b3dceffa2accfb2b73db4f9721b7c95b0dc259cfef7ffbd41c3f9
4
+ data.tar.gz: ed7c8ec732e5cf08c23618c3945b8dd00b709adf68c88823d44ec98646e60a5a
5
5
  SHA512:
6
- metadata.gz: ea656b85aff4712a60bd6b2ae1df60c0a7e092e6640a87dd8c0272abf56c9fca8cb295f0d3c1acba6022a58d9c2dddda5490ea16f531de7cefae858a9788b74a
7
- data.tar.gz: 4701db5dec11fb7780b14977d3f4db1878c713287139f42e7860c0544e4dfd60897722e2528a8fe9629a705f96a4248580dbebf5a5fbdfa3e675c13f9ae05101
6
+ metadata.gz: c671e10d952179ba019a42a9280c55e8590e62fa66328f33f97ca117ed84a470e6553b024ac7bdcd06c2f185666a669fbe7d144530776a98b3ee12aa063546db
7
+ data.tar.gz: d0adb9f2155cceff85e8beaae8be888014d4d0e8b2ae207efd029df52520637dc9ee14477c592817a21aa18d44d2987c4e1596582935d01b9c6e0014397179d5
@@ -4,5 +4,5 @@
4
4
  # For full terms see the included LICENSE file.
5
5
 
6
6
  module Rugged
7
- Version = VERSION = '1.9.5.1'
7
+ Version = VERSION = '1.9.6'
8
8
  end
@@ -6,7 +6,7 @@
6
6
 
7
7
  cmake_minimum_required(VERSION 3.5.1)
8
8
 
9
- project(libgit2 VERSION "1.9.5" LANGUAGES C)
9
+ project(libgit2 VERSION "1.9.6" LANGUAGES C)
10
10
 
11
11
  # Add find modules to the path
12
12
  set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${PROJECT_SOURCE_DIR}/cmake")
@@ -112,9 +112,11 @@ else()
112
112
 
113
113
  if(MINGW OR MSYS) # MinGW and MSYS always do PIC and complain if we tell them to
114
114
  string(REGEX REPLACE "-fPIC" "" CMAKE_SHARED_LIBRARY_C_FLAGS "${CMAKE_SHARED_LIBRARY_C_FLAGS}")
115
- elseif(BUILD_SHARED_LIBS)
116
- add_c_flag_IF_SUPPORTED(-fvisibility=hidden)
115
+ else()
116
+ add_c_flag_if_supported(-fvisibility=hidden)
117
+ endif()
117
118
 
119
+ if(BUILD_SHARED_LIBS)
118
120
  set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC")
119
121
  endif()
120
122
 
@@ -21,7 +21,7 @@ GIT_BEGIN_DECL
21
21
  * The version string for libgit2. This string follows semantic
22
22
  * versioning (v2) guidelines.
23
23
  */
24
- #define LIBGIT2_VERSION "1.9.5"
24
+ #define LIBGIT2_VERSION "1.9.6"
25
25
 
26
26
  /** The major version number for this version of libgit2. */
27
27
  #define LIBGIT2_VERSION_MAJOR 1
@@ -30,7 +30,7 @@ GIT_BEGIN_DECL
30
30
  #define LIBGIT2_VERSION_MINOR 9
31
31
 
32
32
  /** The revision ("teeny") version number for this version of libgit2. */
33
- #define LIBGIT2_VERSION_REVISION 5
33
+ #define LIBGIT2_VERSION_REVISION 6
34
34
 
35
35
  /** The Windows DLL patch number for this version of libgit2. */
36
36
  #define LIBGIT2_VERSION_PATCH 0
@@ -439,16 +439,22 @@ static int load_known_hosts(LIBSSH2_KNOWNHOSTS **hosts, LIBSSH2_SESSION *session
439
439
 
440
440
  GIT_ASSERT_ARG(hosts);
441
441
 
442
- if ((error = git_sysdir_expand_homedir_file(&sshdir, SSH_DIR)) < 0 ||
443
- (error = git_str_joinpath(&path, git_str_cstr(&sshdir), KNOWN_HOSTS_FILE)) < 0)
444
- goto out;
445
-
446
442
  if ((known_hosts = libssh2_knownhost_init(session)) == NULL) {
447
443
  ssh_error(session, "error initializing known hosts");
448
444
  error = -1;
449
445
  goto out;
450
446
  }
451
447
 
448
+ if ((error = git_sysdir_expand_homedir_file(&sshdir, SSH_DIR)) < 0) {
449
+ if (error == GIT_ENOTFOUND)
450
+ error = 0;
451
+
452
+ goto out;
453
+ }
454
+
455
+ if ((error = git_str_joinpath(&path, git_str_cstr(&sshdir), KNOWN_HOSTS_FILE)) < 0)
456
+ goto out;
457
+
452
458
  /*
453
459
  * Try to read the file and consider not finding it as not trusting the
454
460
  * host rather than an error.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rugged
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.5.1
4
+ version: 1.9.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scott Chacon