rugged 1.6.2 → 1.6.3
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/cli/CMakeLists.txt +0 -1
- data/vendor/libgit2/src/libgit2/CMakeLists.txt +0 -1
- data/vendor/libgit2/src/libgit2/index.c +2 -3
- data/vendor/libgit2/src/libgit2/odb.c +19 -0
- data/vendor/libgit2/src/libgit2/pack.c +4 -5
- data/vendor/libgit2/src/libgit2/sysdir.h +2 -0
- data/vendor/libgit2/src/util/CMakeLists.txt +0 -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: 9cc31109e6df7461749b4e823c07b7f7bcba5b25a9eee0de18d9e66811f02f2d
|
4
|
+
data.tar.gz: 5c6ee9dcc92ba1d9e528f709bcb6075b47d2bdabeb5f96a0fe13157f68ab8824
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 64cc9797783d455152a320da1019c732e3b2a4036f03410a89d0c6c3cd9f76f1b865df132006b0d9b5a631a0244736c105c3cbe5b778960f03ecec4b589646b5
|
7
|
+
data.tar.gz: 68326e81b3b370bd6929648fada07d81b9dcbb1029995977b9528058f68e7f8691fd57d0a06fc5aeda394cfd734e2d39841cfb4a857f744ca6a931223bf71ed3
|
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.3"
|
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 3
|
24
24
|
|
25
25
|
/** The Windows DLL patch number for this version of libgit2. */
|
26
26
|
#define LIBGIT2_VER_PATCH 0
|
@@ -10,7 +10,6 @@ include(PkgBuildConfig)
|
|
10
10
|
set(LIBGIT2_INCLUDES
|
11
11
|
"${PROJECT_BINARY_DIR}/src/util"
|
12
12
|
"${PROJECT_BINARY_DIR}/include"
|
13
|
-
"${PROJECT_BINARY_DIR}/include/git2"
|
14
13
|
"${PROJECT_SOURCE_DIR}/src/libgit2"
|
15
14
|
"${PROJECT_SOURCE_DIR}/src/util"
|
16
15
|
"${PROJECT_SOURCE_DIR}/include")
|
@@ -3397,7 +3397,6 @@ int git_index_add_all(
|
|
3397
3397
|
{
|
3398
3398
|
int error;
|
3399
3399
|
git_repository *repo;
|
3400
|
-
git_iterator *wditer = NULL;
|
3401
3400
|
git_pathspec ps;
|
3402
3401
|
bool no_fnmatch = (flags & GIT_INDEX_ADD_DISABLE_PATHSPEC_MATCH) != 0;
|
3403
3402
|
|
@@ -3423,7 +3422,6 @@ int git_index_add_all(
|
|
3423
3422
|
git_error_set_after_callback(error);
|
3424
3423
|
|
3425
3424
|
cleanup:
|
3426
|
-
git_iterator_free(wditer);
|
3427
3425
|
git_pathspec__clear(&ps);
|
3428
3426
|
|
3429
3427
|
return error;
|
@@ -3511,7 +3509,8 @@ static int index_apply_to_wd_diff(git_index *index, int action, const git_strarr
|
|
3511
3509
|
GIT_DIFF_RECURSE_UNTRACKED_DIRS;
|
3512
3510
|
|
3513
3511
|
if (flags == GIT_INDEX_ADD_FORCE)
|
3514
|
-
opts.flags |= GIT_DIFF_INCLUDE_IGNORED
|
3512
|
+
opts.flags |= GIT_DIFF_INCLUDE_IGNORED |
|
3513
|
+
GIT_DIFF_RECURSE_IGNORED_DIRS;
|
3515
3514
|
}
|
3516
3515
|
|
3517
3516
|
if ((error = git_diff_index_to_workdir(&diff, repo, index, &opts)) < 0)
|
@@ -856,6 +856,25 @@ int git_odb__open(
|
|
856
856
|
return 0;
|
857
857
|
}
|
858
858
|
|
859
|
+
#ifdef GIT_EXPERIMENTAL_SHA256
|
860
|
+
|
861
|
+
int git_odb_open(
|
862
|
+
git_odb **out,
|
863
|
+
const char *objects_dir,
|
864
|
+
const git_odb_options *opts)
|
865
|
+
{
|
866
|
+
return git_odb__open(out, objects_dir, opts);
|
867
|
+
}
|
868
|
+
|
869
|
+
#else
|
870
|
+
|
871
|
+
int git_odb_open(git_odb **out, const char *objects_dir)
|
872
|
+
{
|
873
|
+
return git_odb__open(out, objects_dir, NULL);
|
874
|
+
}
|
875
|
+
|
876
|
+
#endif
|
877
|
+
|
859
878
|
int git_odb__set_caps(git_odb *odb, int caps)
|
860
879
|
{
|
861
880
|
if (caps == GIT_ODB_CAP_FROM_OWNER) {
|
@@ -200,7 +200,7 @@ static void pack_index_free(struct git_pack_file *p)
|
|
200
200
|
static int pack_index_check_locked(const char *path, struct git_pack_file *p)
|
201
201
|
{
|
202
202
|
struct git_pack_idx_header *hdr;
|
203
|
-
uint32_t version, nr, i, *index;
|
203
|
+
uint32_t version, nr = 0, i, *index;
|
204
204
|
void *idx_map;
|
205
205
|
size_t idx_size;
|
206
206
|
struct stat st;
|
@@ -246,7 +246,6 @@ static int pack_index_check_locked(const char *path, struct git_pack_file *p)
|
|
246
246
|
version = 1;
|
247
247
|
}
|
248
248
|
|
249
|
-
nr = 0;
|
250
249
|
index = idx_map;
|
251
250
|
|
252
251
|
if (version > 1)
|
@@ -269,7 +268,7 @@ static int pack_index_check_locked(const char *path, struct git_pack_file *p)
|
|
269
268
|
* - 20/32-byte SHA of the packfile
|
270
269
|
* - 20/32-byte SHA file checksum
|
271
270
|
*/
|
272
|
-
if (idx_size != (4 * 256 + (nr * (p->oid_size + 4)) + (p->oid_size * 2))) {
|
271
|
+
if (idx_size != (4 * 256 + ((uint64_t) nr * (p->oid_size + 4)) + (p->oid_size * 2))) {
|
273
272
|
git_futils_mmap_free(&p->index_map);
|
274
273
|
return packfile_error("index is corrupted");
|
275
274
|
}
|
@@ -287,8 +286,8 @@ static int pack_index_check_locked(const char *path, struct git_pack_file *p)
|
|
287
286
|
* variable sized table containing 8-byte entries
|
288
287
|
* for offsets larger than 2^31.
|
289
288
|
*/
|
290
|
-
|
291
|
-
|
289
|
+
uint64_t min_size = 8 + (4 * 256) + ((uint64_t)nr * (p->oid_size + 4 + 4)) + (p->oid_size * 2);
|
290
|
+
uint64_t max_size = min_size;
|
292
291
|
|
293
292
|
if (nr)
|
294
293
|
max_size += (nr - 1)*8;
|
@@ -134,10 +134,12 @@ extern int git_sysdir_set(git_sysdir_t which, const char *paths);
|
|
134
134
|
*/
|
135
135
|
extern int git_sysdir_reset(void);
|
136
136
|
|
137
|
+
#ifdef GIT_WIN32
|
137
138
|
/** Sets the registry system dir to a mock; for testing. */
|
138
139
|
extern int git_win32__set_registry_system_dir(const wchar_t *mock_sysdir);
|
139
140
|
|
140
141
|
/** Find the given system dir; for testing. */
|
141
142
|
extern int git_win32__find_system_dirs(git_str *out, const char *subdir);
|
143
|
+
#endif
|
142
144
|
|
143
145
|
#endif
|
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.3
|
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: 2023-03-
|
12
|
+
date: 2023-03-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake-compiler
|