rugged 0.25.1.1 → 0.26.0b1
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/include/git2/common.h +10 -0
- data/vendor/libgit2/include/git2/merge.h +2 -1
- data/vendor/libgit2/include/git2/oid.h +4 -5
- data/vendor/libgit2/include/git2/submodule.h +2 -11
- data/vendor/libgit2/include/git2/sys/repository.h +29 -0
- data/vendor/libgit2/include/git2/tree.h +13 -0
- data/vendor/libgit2/src/apply.c +2 -2
- data/vendor/libgit2/src/attr_file.c +5 -5
- data/vendor/libgit2/src/attrcache.c +9 -7
- data/vendor/libgit2/src/blob.c +3 -3
- data/vendor/libgit2/src/branch.c +10 -10
- data/vendor/libgit2/src/buffer.c +4 -4
- data/vendor/libgit2/src/cache.c +1 -1
- data/vendor/libgit2/src/checkout.c +29 -25
- data/vendor/libgit2/src/cherrypick.c +2 -2
- data/vendor/libgit2/src/commit.c +2 -2
- data/vendor/libgit2/src/commit_list.c +2 -2
- data/vendor/libgit2/src/common.h +1 -1
- data/vendor/libgit2/src/config.c +12 -12
- data/vendor/libgit2/src/config_file.c +9 -9
- data/vendor/libgit2/src/crlf.c +1 -1
- data/vendor/libgit2/src/delta.c +4 -4
- data/vendor/libgit2/src/describe.c +11 -11
- data/vendor/libgit2/src/diff_driver.c +1 -1
- data/vendor/libgit2/src/diff_file.c +1 -1
- data/vendor/libgit2/src/diff_generate.c +2 -2
- data/vendor/libgit2/src/diff_print.c +5 -5
- data/vendor/libgit2/src/diff_tform.c +1 -1
- data/vendor/libgit2/src/diff_xdiff.c +2 -2
- data/vendor/libgit2/src/fetch.c +1 -1
- data/vendor/libgit2/src/fetchhead.c +8 -8
- data/vendor/libgit2/src/filebuf.c +9 -9
- data/vendor/libgit2/src/fileops.c +27 -27
- data/vendor/libgit2/src/filter.c +4 -4
- data/vendor/libgit2/src/hashsig.c +2 -2
- data/vendor/libgit2/src/ignore.c +4 -4
- data/vendor/libgit2/src/index.c +15 -15
- data/vendor/libgit2/src/indexer.c +39 -6
- data/vendor/libgit2/src/integer.h +6 -6
- data/vendor/libgit2/src/merge.c +12 -12
- data/vendor/libgit2/src/merge_file.c +1 -1
- data/vendor/libgit2/src/mwindow.c +1 -1
- data/vendor/libgit2/src/netops.c +4 -4
- data/vendor/libgit2/src/notes.c +3 -3
- data/vendor/libgit2/src/object.c +5 -5
- data/vendor/libgit2/src/odb.c +12 -12
- data/vendor/libgit2/src/odb_loose.c +6 -6
- data/vendor/libgit2/src/oid.c +5 -5
- data/vendor/libgit2/src/openssl_stream.c +3 -3
- data/vendor/libgit2/src/pack-objects.c +6 -6
- data/vendor/libgit2/src/pack.c +19 -10
- data/vendor/libgit2/src/pack.h +1 -0
- data/vendor/libgit2/src/patch_generate.c +5 -3
- data/vendor/libgit2/src/path.c +15 -15
- data/vendor/libgit2/src/pathspec.c +2 -2
- data/vendor/libgit2/src/posix.c +1 -1
- data/vendor/libgit2/src/push.c +6 -6
- data/vendor/libgit2/src/rebase.c +12 -12
- data/vendor/libgit2/src/refdb.c +1 -1
- data/vendor/libgit2/src/refdb_fs.c +12 -12
- data/vendor/libgit2/src/reflog.c +2 -2
- data/vendor/libgit2/src/refs.c +34 -17
- data/vendor/libgit2/src/refs.h +3 -0
- data/vendor/libgit2/src/remote.c +3 -3
- data/vendor/libgit2/src/repository.c +46 -13
- data/vendor/libgit2/src/repository.h +2 -1
- data/vendor/libgit2/src/reset.c +1 -1
- data/vendor/libgit2/src/revert.c +2 -2
- data/vendor/libgit2/src/revparse.c +5 -5
- data/vendor/libgit2/src/revwalk.c +3 -3
- data/vendor/libgit2/src/settings.c +6 -1
- data/vendor/libgit2/src/sha1_lookup.c +1 -1
- data/vendor/libgit2/src/signature.c +1 -1
- data/vendor/libgit2/src/socket_stream.c +5 -5
- data/vendor/libgit2/src/sortedcache.c +5 -5
- data/vendor/libgit2/src/stash.c +6 -6
- data/vendor/libgit2/src/status.c +4 -4
- data/vendor/libgit2/src/submodule.c +159 -110
- data/vendor/libgit2/src/submodule.h +3 -0
- data/vendor/libgit2/src/sysdir.c +2 -2
- data/vendor/libgit2/src/tag.c +14 -14
- data/vendor/libgit2/src/trace.c +1 -1
- data/vendor/libgit2/src/transport.c +1 -1
- data/vendor/libgit2/src/transports/auth_negotiate.c +4 -4
- data/vendor/libgit2/src/transports/cred.c +1 -1
- data/vendor/libgit2/src/transports/git.c +3 -3
- data/vendor/libgit2/src/transports/http.c +6 -6
- data/vendor/libgit2/src/transports/local.c +2 -2
- data/vendor/libgit2/src/transports/smart.c +5 -5
- data/vendor/libgit2/src/transports/smart_pkt.c +4 -4
- data/vendor/libgit2/src/transports/smart_protocol.c +1 -1
- data/vendor/libgit2/src/transports/ssh.c +9 -9
- data/vendor/libgit2/src/transports/winhttp.c +155 -118
- data/vendor/libgit2/src/tree-cache.c +2 -2
- data/vendor/libgit2/src/tree.c +35 -20
- data/vendor/libgit2/src/unix/map.c +1 -1
- data/vendor/libgit2/src/util.c +3 -3
- data/vendor/libgit2/src/vector.c +3 -0
- data/vendor/libgit2/src/win32/dir.c +3 -3
- data/vendor/libgit2/src/win32/findfile.c +1 -1
- data/vendor/libgit2/src/win32/map.c +6 -6
- data/vendor/libgit2/src/win32/w32_crtdbg_stacktrace.c +2 -2
- data/vendor/libgit2/src/win32/w32_util.c +1 -1
- data/vendor/libgit2/src/win32/w32_util.h +1 -1
- data/vendor/libgit2/src/zstream.c +1 -1
- metadata +4 -4
@@ -137,7 +137,7 @@ static int read_tree_internal(git_tree_cache **out,
|
|
137
137
|
return 0;
|
138
138
|
|
139
139
|
corrupted:
|
140
|
-
giterr_set(GITERR_INDEX, "
|
140
|
+
giterr_set(GITERR_INDEX, "corrupted TREE extension in index");
|
141
141
|
return -1;
|
142
142
|
}
|
143
143
|
|
@@ -149,7 +149,7 @@ int git_tree_cache_read(git_tree_cache **tree, const char *buffer, size_t buffer
|
|
149
149
|
return -1;
|
150
150
|
|
151
151
|
if (buffer < buffer_end) {
|
152
|
-
giterr_set(GITERR_INDEX, "
|
152
|
+
giterr_set(GITERR_INDEX, "corrupted TREE extension in index (unexpected trailing data)");
|
153
153
|
return -1;
|
154
154
|
}
|
155
155
|
|
data/vendor/libgit2/src/tree.c
CHANGED
@@ -520,7 +520,8 @@ static int write_tree(
|
|
520
520
|
git_repository *repo,
|
521
521
|
git_index *index,
|
522
522
|
const char *dirname,
|
523
|
-
size_t start
|
523
|
+
size_t start,
|
524
|
+
git_buf *shared_buf)
|
524
525
|
{
|
525
526
|
git_treebuilder *bld = NULL;
|
526
527
|
size_t i, entries = git_index_entrycount(index);
|
@@ -573,7 +574,7 @@ static int write_tree(
|
|
573
574
|
GITERR_CHECK_ALLOC(subdir);
|
574
575
|
|
575
576
|
/* Write out the subtree */
|
576
|
-
written = write_tree(&sub_oid, repo, index, subdir, i);
|
577
|
+
written = write_tree(&sub_oid, repo, index, subdir, i, shared_buf);
|
577
578
|
if (written < 0) {
|
578
579
|
git__free(subdir);
|
579
580
|
goto on_error;
|
@@ -605,7 +606,7 @@ static int write_tree(
|
|
605
606
|
}
|
606
607
|
}
|
607
608
|
|
608
|
-
if (
|
609
|
+
if (git_treebuilder_write_with_buffer(oid, bld, shared_buf) < 0)
|
609
610
|
goto on_error;
|
610
611
|
|
611
612
|
git_treebuilder_free(bld);
|
@@ -621,13 +622,14 @@ int git_tree__write_index(
|
|
621
622
|
{
|
622
623
|
int ret;
|
623
624
|
git_tree *tree;
|
625
|
+
git_buf shared_buf = GIT_BUF_INIT;
|
624
626
|
bool old_ignore_case = false;
|
625
627
|
|
626
628
|
assert(oid && index && repo);
|
627
629
|
|
628
630
|
if (git_index_has_conflicts(index)) {
|
629
631
|
giterr_set(GITERR_INDEX,
|
630
|
-
"
|
632
|
+
"cannot create a tree from a not fully merged index.");
|
631
633
|
return GIT_EUNMERGED;
|
632
634
|
}
|
633
635
|
|
@@ -646,7 +648,8 @@ int git_tree__write_index(
|
|
646
648
|
git_index__set_ignore_case(index, false);
|
647
649
|
}
|
648
650
|
|
649
|
-
ret = write_tree(oid, repo, index, "", 0);
|
651
|
+
ret = write_tree(oid, repo, index, "", 0, &shared_buf);
|
652
|
+
git_buf_free(&shared_buf);
|
650
653
|
|
651
654
|
if (old_ignore_case)
|
652
655
|
git_index__set_ignore_case(index, true);
|
@@ -801,20 +804,37 @@ int git_treebuilder_remove(git_treebuilder *bld, const char *filename)
|
|
801
804
|
}
|
802
805
|
|
803
806
|
int git_treebuilder_write(git_oid *oid, git_treebuilder *bld)
|
807
|
+
{
|
808
|
+
int error;
|
809
|
+
git_buf buffer = GIT_BUF_INIT;
|
810
|
+
|
811
|
+
error = git_treebuilder_write_with_buffer(oid, bld, &buffer);
|
812
|
+
|
813
|
+
git_buf_free(&buffer);
|
814
|
+
return error;
|
815
|
+
}
|
816
|
+
|
817
|
+
int git_treebuilder_write_with_buffer(git_oid *oid, git_treebuilder *bld, git_buf *tree)
|
804
818
|
{
|
805
819
|
int error = 0;
|
806
820
|
size_t i, entrycount;
|
807
|
-
git_buf tree = GIT_BUF_INIT;
|
808
821
|
git_odb *odb;
|
809
822
|
git_tree_entry *entry;
|
810
823
|
git_vector entries;
|
811
824
|
|
812
825
|
assert(bld);
|
826
|
+
assert(tree);
|
827
|
+
|
828
|
+
git_buf_clear(tree);
|
813
829
|
|
814
830
|
entrycount = git_strmap_num_entries(bld->map);
|
815
831
|
if (git_vector_init(&entries, entrycount, entry_sort_cmp) < 0)
|
816
832
|
return -1;
|
817
833
|
|
834
|
+
if (tree->asize == 0 &&
|
835
|
+
(error = git_buf_grow(tree, entrycount * 72)) < 0)
|
836
|
+
return error;
|
837
|
+
|
818
838
|
git_strmap_foreach_value(bld->map, entry, {
|
819
839
|
if (git_vector_insert(&entries, entry) < 0)
|
820
840
|
return -1;
|
@@ -822,26 +842,21 @@ int git_treebuilder_write(git_oid *oid, git_treebuilder *bld)
|
|
822
842
|
|
823
843
|
git_vector_sort(&entries);
|
824
844
|
|
825
|
-
/* Grow the buffer beforehand to an estimated size */
|
826
|
-
error = git_buf_grow(&tree, entrycount * 72);
|
827
|
-
|
828
845
|
for (i = 0; i < entries.length && !error; ++i) {
|
829
846
|
git_tree_entry *entry = git_vector_get(&entries, i);
|
830
847
|
|
831
|
-
git_buf_printf(
|
832
|
-
git_buf_put(
|
833
|
-
git_buf_put(
|
848
|
+
git_buf_printf(tree, "%o ", entry->attr);
|
849
|
+
git_buf_put(tree, entry->filename, entry->filename_len + 1);
|
850
|
+
git_buf_put(tree, (char *)entry->oid->id, GIT_OID_RAWSZ);
|
834
851
|
|
835
|
-
if (git_buf_oom(
|
852
|
+
if (git_buf_oom(tree))
|
836
853
|
error = -1;
|
837
854
|
}
|
838
855
|
|
839
|
-
|
840
856
|
if (!error &&
|
841
857
|
!(error = git_repository_odb__weakptr(&odb, bld->repo)))
|
842
|
-
error = git_odb_write(oid, odb, tree
|
858
|
+
error = git_odb_write(oid, odb, tree->ptr, tree->size, GIT_OBJ_TREE);
|
843
859
|
|
844
|
-
git_buf_free(&tree);
|
845
860
|
git_vector_free(&entries);
|
846
861
|
|
847
862
|
return error;
|
@@ -909,7 +924,7 @@ int git_tree_entry_bypath(
|
|
909
924
|
filename_len = subpath_len(path);
|
910
925
|
|
911
926
|
if (filename_len == 0) {
|
912
|
-
giterr_set(GITERR_TREE, "
|
927
|
+
giterr_set(GITERR_TREE, "invalid tree path given");
|
913
928
|
return GIT_ENOTFOUND;
|
914
929
|
}
|
915
930
|
|
@@ -1027,7 +1042,7 @@ int git_tree_walk(
|
|
1027
1042
|
git_buf root_path = GIT_BUF_INIT;
|
1028
1043
|
|
1029
1044
|
if (mode != GIT_TREEWALK_POST && mode != GIT_TREEWALK_PRE) {
|
1030
|
-
giterr_set(GITERR_INVALID, "
|
1045
|
+
giterr_set(GITERR_INVALID, "invalid walking mode for tree walk");
|
1031
1046
|
return -1;
|
1032
1047
|
}
|
1033
1048
|
|
@@ -1237,7 +1252,7 @@ int git_tree_create_updated(git_oid *out, git_repository *repo, git_tree *baseli
|
|
1237
1252
|
const git_tree_entry *e = git_treebuilder_get(last->bld, basename);
|
1238
1253
|
if (e && git_tree_entry_type(e) != git_object__type_from_filemode(update->filemode)) {
|
1239
1254
|
git__free(basename);
|
1240
|
-
giterr_set(GITERR_TREE, "
|
1255
|
+
giterr_set(GITERR_TREE, "cannot replace '%s' with '%s' at '%s'",
|
1241
1256
|
git_object_type2string(git_tree_entry_type(e)),
|
1242
1257
|
git_object_type2string(git_object__type_from_filemode(update->filemode)),
|
1243
1258
|
update->path);
|
@@ -1257,7 +1272,7 @@ int git_tree_create_updated(git_oid *out, git_repository *repo, git_tree *baseli
|
|
1257
1272
|
break;
|
1258
1273
|
}
|
1259
1274
|
default:
|
1260
|
-
giterr_set(GITERR_TREE, "
|
1275
|
+
giterr_set(GITERR_TREE, "unknown action for update");
|
1261
1276
|
error = -1;
|
1262
1277
|
goto cleanup;
|
1263
1278
|
}
|
@@ -52,7 +52,7 @@ int p_mmap(git_map *out, size_t len, int prot, int flags, int fd, git_off_t offs
|
|
52
52
|
out->data = mmap(NULL, len, mprot, mflag, fd, offset);
|
53
53
|
|
54
54
|
if (!out->data || out->data == MAP_FAILED) {
|
55
|
-
giterr_set(GITERR_OS, "
|
55
|
+
giterr_set(GITERR_OS, "failed to mmap. Could not write data");
|
56
56
|
return -1;
|
57
57
|
}
|
58
58
|
|
data/vendor/libgit2/src/util.c
CHANGED
@@ -136,7 +136,7 @@ int git__strntol64(int64_t *result, const char *nptr, size_t nptr_len, const cha
|
|
136
136
|
|
137
137
|
Return:
|
138
138
|
if (ndig == 0) {
|
139
|
-
giterr_set(GITERR_INVALID, "
|
139
|
+
giterr_set(GITERR_INVALID, "failed to convert string to long: not a number");
|
140
140
|
return -1;
|
141
141
|
}
|
142
142
|
|
@@ -144,7 +144,7 @@ Return:
|
|
144
144
|
*endptr = p;
|
145
145
|
|
146
146
|
if (ovfl) {
|
147
|
-
giterr_set(GITERR_INVALID, "
|
147
|
+
giterr_set(GITERR_INVALID, "failed to convert string to long: overflow error");
|
148
148
|
return -1;
|
149
149
|
}
|
150
150
|
|
@@ -169,7 +169,7 @@ int git__strntol32(int32_t *result, const char *nptr, size_t nptr_len, const cha
|
|
169
169
|
|
170
170
|
tmp_int = tmp_long & 0xFFFFFFFF;
|
171
171
|
if (tmp_int != tmp_long) {
|
172
|
-
giterr_set(GITERR_INVALID, "
|
172
|
+
giterr_set(GITERR_INVALID, "failed to convert: '%s' is too large", nptr);
|
173
173
|
return -1;
|
174
174
|
}
|
175
175
|
|
data/vendor/libgit2/src/vector.c
CHANGED
@@ -28,7 +28,7 @@ git__DIR *git__opendir(const char *dir)
|
|
28
28
|
new->h = FindFirstFileW(filter_w, &new->f);
|
29
29
|
|
30
30
|
if (new->h == INVALID_HANDLE_VALUE) {
|
31
|
-
giterr_set(GITERR_OS, "
|
31
|
+
giterr_set(GITERR_OS, "could not open directory '%s'", dir);
|
32
32
|
git__free(new);
|
33
33
|
return NULL;
|
34
34
|
}
|
@@ -53,7 +53,7 @@ int git__readdir_ext(
|
|
53
53
|
else if (!FindNextFileW(d->h, &d->f)) {
|
54
54
|
if (GetLastError() == ERROR_NO_MORE_FILES)
|
55
55
|
return 0;
|
56
|
-
giterr_set(GITERR_OS, "
|
56
|
+
giterr_set(GITERR_OS, "could not read from directory '%s'", d->dir);
|
57
57
|
return -1;
|
58
58
|
}
|
59
59
|
|
@@ -98,7 +98,7 @@ void git__rewinddir(git__DIR *d)
|
|
98
98
|
d->h = FindFirstFileW(filter_w, &d->f);
|
99
99
|
|
100
100
|
if (d->h == INVALID_HANDLE_VALUE)
|
101
|
-
giterr_set(GITERR_OS, "
|
101
|
+
giterr_set(GITERR_OS, "could not open directory '%s'", d->dir);
|
102
102
|
else
|
103
103
|
d->first = 1;
|
104
104
|
}
|
@@ -38,7 +38,7 @@ static int win32_path_to_8(git_buf *dest, const wchar_t *src)
|
|
38
38
|
git_win32_utf8_path utf8_path;
|
39
39
|
|
40
40
|
if (git_win32_path_to_utf8(utf8_path, src) < 0) {
|
41
|
-
giterr_set(GITERR_OS, "
|
41
|
+
giterr_set(GITERR_OS, "unable to convert path to UTF-8");
|
42
42
|
return -1;
|
43
43
|
}
|
44
44
|
|
@@ -67,7 +67,7 @@ int p_mmap(git_map *out, size_t len, int prot, int flags, int fd, git_off_t offs
|
|
67
67
|
|
68
68
|
if (fh == INVALID_HANDLE_VALUE) {
|
69
69
|
errno = EBADF;
|
70
|
-
giterr_set(GITERR_OS, "
|
70
|
+
giterr_set(GITERR_OS, "failed to mmap. Invalid handle value");
|
71
71
|
return -1;
|
72
72
|
}
|
73
73
|
|
@@ -86,13 +86,13 @@ int p_mmap(git_map *out, size_t len, int prot, int flags, int fd, git_off_t offs
|
|
86
86
|
|
87
87
|
if (page_offset != 0) { /* offset must be multiple of the allocation granularity */
|
88
88
|
errno = EINVAL;
|
89
|
-
giterr_set(GITERR_OS, "
|
89
|
+
giterr_set(GITERR_OS, "failed to mmap. Offset must be multiple of allocation granularity");
|
90
90
|
return -1;
|
91
91
|
}
|
92
92
|
|
93
93
|
out->fmh = CreateFileMapping(fh, NULL, fmap_prot, 0, 0, NULL);
|
94
94
|
if (!out->fmh || out->fmh == INVALID_HANDLE_VALUE) {
|
95
|
-
giterr_set(GITERR_OS, "
|
95
|
+
giterr_set(GITERR_OS, "failed to mmap. Invalid handle value");
|
96
96
|
out->fmh = NULL;
|
97
97
|
return -1;
|
98
98
|
}
|
@@ -103,7 +103,7 @@ int p_mmap(git_map *out, size_t len, int prot, int flags, int fd, git_off_t offs
|
|
103
103
|
off_hi = (DWORD)(page_start >> 32);
|
104
104
|
out->data = MapViewOfFile(out->fmh, view_prot, off_hi, off_low, len);
|
105
105
|
if (!out->data) {
|
106
|
-
giterr_set(GITERR_OS, "
|
106
|
+
giterr_set(GITERR_OS, "failed to mmap. No data written");
|
107
107
|
CloseHandle(out->fmh);
|
108
108
|
out->fmh = NULL;
|
109
109
|
return -1;
|
@@ -121,7 +121,7 @@ int p_munmap(git_map *map)
|
|
121
121
|
|
122
122
|
if (map->data) {
|
123
123
|
if (!UnmapViewOfFile(map->data)) {
|
124
|
-
giterr_set(GITERR_OS, "
|
124
|
+
giterr_set(GITERR_OS, "failed to munmap. Could not unmap view of file");
|
125
125
|
error = -1;
|
126
126
|
}
|
127
127
|
map->data = NULL;
|
@@ -129,7 +129,7 @@ int p_munmap(git_map *map)
|
|
129
129
|
|
130
130
|
if (map->fmh) {
|
131
131
|
if (!CloseHandle(map->fmh)) {
|
132
|
-
giterr_set(GITERR_OS, "
|
132
|
+
giterr_set(GITERR_OS, "failed to munmap. Could not close handle");
|
133
133
|
error = -1;
|
134
134
|
}
|
135
135
|
map->fmh = NULL;
|
@@ -253,11 +253,11 @@ int git_win32__crtdbg_stacktrace__dump(
|
|
253
253
|
bool b_quiet = IS_BIT_SET(opt, GIT_WIN32__CRTDBG_STACKTRACE__QUIET);
|
254
254
|
|
255
255
|
if (b_leaks_since_mark && b_leaks_total) {
|
256
|
-
giterr_set(GITERR_INVALID, "
|
256
|
+
giterr_set(GITERR_INVALID, "cannot combine LEAKS_SINCE_MARK and LEAKS_TOTAL.");
|
257
257
|
return GIT_ERROR;
|
258
258
|
}
|
259
259
|
if (!b_set_mark && !b_leaks_since_mark && !b_leaks_total) {
|
260
|
-
giterr_set(GITERR_INVALID, "
|
260
|
+
giterr_set(GITERR_INVALID, "nothing to do.");
|
261
261
|
return GIT_ERROR;
|
262
262
|
}
|
263
263
|
|
@@ -68,7 +68,7 @@ int git_win32__set_hidden(const char *path, bool hidden)
|
|
68
68
|
newattrs = attrs & ~FILE_ATTRIBUTE_HIDDEN;
|
69
69
|
|
70
70
|
if (attrs != newattrs && !SetFileAttributesW(buf, newattrs)) {
|
71
|
-
giterr_set(GITERR_OS, "
|
71
|
+
giterr_set(GITERR_OS, "failed to %s hidden bit for '%s'",
|
72
72
|
hidden ? "set" : "unset", path);
|
73
73
|
return -1;
|
74
74
|
}
|
@@ -174,7 +174,7 @@ GIT_INLINE(int) git_win32__file_attribute_to_stat(
|
|
174
174
|
/* st_size gets the UTF-8 length of the target name, in bytes,
|
175
175
|
* not counting the NULL terminator */
|
176
176
|
if ((st->st_size = git__utf16_to_8(NULL, 0, target)) < 0) {
|
177
|
-
giterr_set(GITERR_OS, "
|
177
|
+
giterr_set(GITERR_OS, "could not convert reparse point name for '%ls'", path);
|
178
178
|
return -1;
|
179
179
|
}
|
180
180
|
}
|
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: 0.
|
4
|
+
version: 0.26.0b1
|
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: 2017-
|
12
|
+
date: 2017-02-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake-compiler
|
@@ -546,9 +546,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
546
546
|
version: 1.9.3
|
547
547
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
548
548
|
requirements:
|
549
|
-
- - "
|
549
|
+
- - ">"
|
550
550
|
- !ruby/object:Gem::Version
|
551
|
-
version:
|
551
|
+
version: 1.3.1
|
552
552
|
requirements: []
|
553
553
|
rubyforge_project:
|
554
554
|
rubygems_version: 2.6.8
|