rugged 1.6.3 → 1.6.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rugged/version.rb +1 -1
- data/vendor/libgit2/CMakeLists.txt +1 -1
- data/vendor/libgit2/include/git2/version.h +2 -2
- data/vendor/libgit2/src/libgit2/config.c +5 -2
- data/vendor/libgit2/src/libgit2/index.c +5 -2
- data/vendor/libgit2/src/libgit2/revparse.c +4 -1
- data/vendor/libgit2/src/libgit2/transports/smart_pkt.c +2 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 12d371c731e1e760c9398e56d9c483b7dd402b0cb8aa7114876979799f8391d7
|
4
|
+
data.tar.gz: d8f0d8e3d34848f5c47d417469bed92cadb5f19a22468d82025e0260c068fbdc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 165ab860c19b8520d8bd4cf9aae47fe03206a4ac2fe2eea06d19680a178e85822778bc122a87792b44ec12e63d3139c30e8a0d466556f307acc72c968daf41b7
|
7
|
+
data.tar.gz: 2a9661cf572ea86ef8939b7e9d58f63ce4188d9050dedc461e48d3bf4face25abd87b1eaddafbeabc25a203cbb95710f884d5338577239763e668c4f14162093
|
data/lib/rugged/version.rb
CHANGED
@@ -11,7 +11,7 @@
|
|
11
11
|
* The version string for libgit2. This string follows semantic
|
12
12
|
* versioning (v2) guidelines.
|
13
13
|
*/
|
14
|
-
#define LIBGIT2_VERSION "1.6.
|
14
|
+
#define LIBGIT2_VERSION "1.6.5"
|
15
15
|
|
16
16
|
/** The major version number for this version of libgit2. */
|
17
17
|
#define LIBGIT2_VER_MAJOR 1
|
@@ -20,7 +20,7 @@
|
|
20
20
|
#define LIBGIT2_VER_MINOR 6
|
21
21
|
|
22
22
|
/** The revision ("teeny") version number for this version of libgit2. */
|
23
|
-
#define LIBGIT2_VER_REVISION
|
23
|
+
#define LIBGIT2_VER_REVISION 5
|
24
24
|
|
25
25
|
/** The Windows DLL patch number for this version of libgit2. */
|
26
26
|
#define LIBGIT2_VER_PATCH 0
|
@@ -1174,9 +1174,12 @@ int git_config__find_programdata(git_str *path)
|
|
1174
1174
|
GIT_FS_PATH_OWNER_CURRENT_USER |
|
1175
1175
|
GIT_FS_PATH_OWNER_ADMINISTRATOR;
|
1176
1176
|
bool is_safe;
|
1177
|
+
int error;
|
1178
|
+
|
1179
|
+
if ((error = git_sysdir_find_programdata_file(path, GIT_CONFIG_FILENAME_PROGRAMDATA)) < 0)
|
1180
|
+
return error;
|
1177
1181
|
|
1178
|
-
if (
|
1179
|
-
git_fs_path_owner_is(&is_safe, path->ptr, owner_level) < 0)
|
1182
|
+
if (git_fs_path_owner_is(&is_safe, path->ptr, owner_level) < 0)
|
1180
1183
|
return -1;
|
1181
1184
|
|
1182
1185
|
if (!is_safe) {
|
@@ -1148,10 +1148,13 @@ static int has_dir_name(git_index *index,
|
|
1148
1148
|
size_t len, pos;
|
1149
1149
|
|
1150
1150
|
for (;;) {
|
1151
|
-
|
1152
|
-
|
1151
|
+
slash--;
|
1152
|
+
|
1153
1153
|
if (slash <= entry->path)
|
1154
1154
|
return 0;
|
1155
|
+
|
1156
|
+
if (*slash == '/')
|
1157
|
+
break;
|
1155
1158
|
}
|
1156
1159
|
len = slash - name;
|
1157
1160
|
|
@@ -701,6 +701,7 @@ static int revparse(
|
|
701
701
|
git_object *base_rev = NULL;
|
702
702
|
|
703
703
|
bool should_return_reference = true;
|
704
|
+
bool parsed = false;
|
704
705
|
|
705
706
|
GIT_ASSERT_ARG(object_out);
|
706
707
|
GIT_ASSERT_ARG(reference_out);
|
@@ -710,7 +711,7 @@ static int revparse(
|
|
710
711
|
*object_out = NULL;
|
711
712
|
*reference_out = NULL;
|
712
713
|
|
713
|
-
while (spec[pos]) {
|
714
|
+
while (!parsed && spec[pos]) {
|
714
715
|
switch (spec[pos]) {
|
715
716
|
case '^':
|
716
717
|
should_return_reference = false;
|
@@ -817,6 +818,8 @@ static int revparse(
|
|
817
818
|
break;
|
818
819
|
} else if (spec[pos+1] == '\0') {
|
819
820
|
spec = "HEAD";
|
821
|
+
identifier_len = 4;
|
822
|
+
parsed = true;
|
820
823
|
break;
|
821
824
|
}
|
822
825
|
/* fall through */
|
@@ -226,7 +226,8 @@ static int set_data(
|
|
226
226
|
|
227
227
|
GIT_ASSERT_ARG(data);
|
228
228
|
|
229
|
-
if ((caps = memchr(line, '\0', len)) != NULL
|
229
|
+
if ((caps = memchr(line, '\0', len)) != NULL &&
|
230
|
+
len > (size_t)((caps - line) + 1)) {
|
230
231
|
caps++;
|
231
232
|
|
232
233
|
if (strncmp(caps, "object-format=", CONST_STRLEN("object-format=")) == 0)
|
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.6.
|
4
|
+
version: 1.6.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Scott Chacon
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2024-02-07 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake-compiler
|