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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e249f15c122b3dceffa2accfb2b73db4f9721b7c95b0dc259cfef7ffbd41c3f9
|
|
4
|
+
data.tar.gz: ed7c8ec732e5cf08c23618c3945b8dd00b709adf68c88823d44ec98646e60a5a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c671e10d952179ba019a42a9280c55e8590e62fa66328f33f97ca117ed84a470e6553b024ac7bdcd06c2f185666a669fbe7d144530776a98b3ee12aa063546db
|
|
7
|
+
data.tar.gz: d0adb9f2155cceff85e8beaae8be888014d4d0e8b2ae207efd029df52520637dc9ee14477c592817a21aa18d44d2987c4e1596582935d01b9c6e0014397179d5
|
data/lib/rugged/version.rb
CHANGED
|
@@ -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
|
-
|
|
116
|
-
|
|
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.
|
|
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
|
|
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.
|