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.
Files changed (108) hide show
  1. checksums.yaml +4 -4
  2. data/lib/rugged/version.rb +1 -1
  3. data/vendor/libgit2/include/git2/common.h +10 -0
  4. data/vendor/libgit2/include/git2/merge.h +2 -1
  5. data/vendor/libgit2/include/git2/oid.h +4 -5
  6. data/vendor/libgit2/include/git2/submodule.h +2 -11
  7. data/vendor/libgit2/include/git2/sys/repository.h +29 -0
  8. data/vendor/libgit2/include/git2/tree.h +13 -0
  9. data/vendor/libgit2/src/apply.c +2 -2
  10. data/vendor/libgit2/src/attr_file.c +5 -5
  11. data/vendor/libgit2/src/attrcache.c +9 -7
  12. data/vendor/libgit2/src/blob.c +3 -3
  13. data/vendor/libgit2/src/branch.c +10 -10
  14. data/vendor/libgit2/src/buffer.c +4 -4
  15. data/vendor/libgit2/src/cache.c +1 -1
  16. data/vendor/libgit2/src/checkout.c +29 -25
  17. data/vendor/libgit2/src/cherrypick.c +2 -2
  18. data/vendor/libgit2/src/commit.c +2 -2
  19. data/vendor/libgit2/src/commit_list.c +2 -2
  20. data/vendor/libgit2/src/common.h +1 -1
  21. data/vendor/libgit2/src/config.c +12 -12
  22. data/vendor/libgit2/src/config_file.c +9 -9
  23. data/vendor/libgit2/src/crlf.c +1 -1
  24. data/vendor/libgit2/src/delta.c +4 -4
  25. data/vendor/libgit2/src/describe.c +11 -11
  26. data/vendor/libgit2/src/diff_driver.c +1 -1
  27. data/vendor/libgit2/src/diff_file.c +1 -1
  28. data/vendor/libgit2/src/diff_generate.c +2 -2
  29. data/vendor/libgit2/src/diff_print.c +5 -5
  30. data/vendor/libgit2/src/diff_tform.c +1 -1
  31. data/vendor/libgit2/src/diff_xdiff.c +2 -2
  32. data/vendor/libgit2/src/fetch.c +1 -1
  33. data/vendor/libgit2/src/fetchhead.c +8 -8
  34. data/vendor/libgit2/src/filebuf.c +9 -9
  35. data/vendor/libgit2/src/fileops.c +27 -27
  36. data/vendor/libgit2/src/filter.c +4 -4
  37. data/vendor/libgit2/src/hashsig.c +2 -2
  38. data/vendor/libgit2/src/ignore.c +4 -4
  39. data/vendor/libgit2/src/index.c +15 -15
  40. data/vendor/libgit2/src/indexer.c +39 -6
  41. data/vendor/libgit2/src/integer.h +6 -6
  42. data/vendor/libgit2/src/merge.c +12 -12
  43. data/vendor/libgit2/src/merge_file.c +1 -1
  44. data/vendor/libgit2/src/mwindow.c +1 -1
  45. data/vendor/libgit2/src/netops.c +4 -4
  46. data/vendor/libgit2/src/notes.c +3 -3
  47. data/vendor/libgit2/src/object.c +5 -5
  48. data/vendor/libgit2/src/odb.c +12 -12
  49. data/vendor/libgit2/src/odb_loose.c +6 -6
  50. data/vendor/libgit2/src/oid.c +5 -5
  51. data/vendor/libgit2/src/openssl_stream.c +3 -3
  52. data/vendor/libgit2/src/pack-objects.c +6 -6
  53. data/vendor/libgit2/src/pack.c +19 -10
  54. data/vendor/libgit2/src/pack.h +1 -0
  55. data/vendor/libgit2/src/patch_generate.c +5 -3
  56. data/vendor/libgit2/src/path.c +15 -15
  57. data/vendor/libgit2/src/pathspec.c +2 -2
  58. data/vendor/libgit2/src/posix.c +1 -1
  59. data/vendor/libgit2/src/push.c +6 -6
  60. data/vendor/libgit2/src/rebase.c +12 -12
  61. data/vendor/libgit2/src/refdb.c +1 -1
  62. data/vendor/libgit2/src/refdb_fs.c +12 -12
  63. data/vendor/libgit2/src/reflog.c +2 -2
  64. data/vendor/libgit2/src/refs.c +34 -17
  65. data/vendor/libgit2/src/refs.h +3 -0
  66. data/vendor/libgit2/src/remote.c +3 -3
  67. data/vendor/libgit2/src/repository.c +46 -13
  68. data/vendor/libgit2/src/repository.h +2 -1
  69. data/vendor/libgit2/src/reset.c +1 -1
  70. data/vendor/libgit2/src/revert.c +2 -2
  71. data/vendor/libgit2/src/revparse.c +5 -5
  72. data/vendor/libgit2/src/revwalk.c +3 -3
  73. data/vendor/libgit2/src/settings.c +6 -1
  74. data/vendor/libgit2/src/sha1_lookup.c +1 -1
  75. data/vendor/libgit2/src/signature.c +1 -1
  76. data/vendor/libgit2/src/socket_stream.c +5 -5
  77. data/vendor/libgit2/src/sortedcache.c +5 -5
  78. data/vendor/libgit2/src/stash.c +6 -6
  79. data/vendor/libgit2/src/status.c +4 -4
  80. data/vendor/libgit2/src/submodule.c +159 -110
  81. data/vendor/libgit2/src/submodule.h +3 -0
  82. data/vendor/libgit2/src/sysdir.c +2 -2
  83. data/vendor/libgit2/src/tag.c +14 -14
  84. data/vendor/libgit2/src/trace.c +1 -1
  85. data/vendor/libgit2/src/transport.c +1 -1
  86. data/vendor/libgit2/src/transports/auth_negotiate.c +4 -4
  87. data/vendor/libgit2/src/transports/cred.c +1 -1
  88. data/vendor/libgit2/src/transports/git.c +3 -3
  89. data/vendor/libgit2/src/transports/http.c +6 -6
  90. data/vendor/libgit2/src/transports/local.c +2 -2
  91. data/vendor/libgit2/src/transports/smart.c +5 -5
  92. data/vendor/libgit2/src/transports/smart_pkt.c +4 -4
  93. data/vendor/libgit2/src/transports/smart_protocol.c +1 -1
  94. data/vendor/libgit2/src/transports/ssh.c +9 -9
  95. data/vendor/libgit2/src/transports/winhttp.c +155 -118
  96. data/vendor/libgit2/src/tree-cache.c +2 -2
  97. data/vendor/libgit2/src/tree.c +35 -20
  98. data/vendor/libgit2/src/unix/map.c +1 -1
  99. data/vendor/libgit2/src/util.c +3 -3
  100. data/vendor/libgit2/src/vector.c +3 -0
  101. data/vendor/libgit2/src/win32/dir.c +3 -3
  102. data/vendor/libgit2/src/win32/findfile.c +1 -1
  103. data/vendor/libgit2/src/win32/map.c +6 -6
  104. data/vendor/libgit2/src/win32/w32_crtdbg_stacktrace.c +2 -2
  105. data/vendor/libgit2/src/win32/w32_util.c +1 -1
  106. data/vendor/libgit2/src/win32/w32_util.h +1 -1
  107. data/vendor/libgit2/src/zstream.c +1 -1
  108. metadata +4 -4
@@ -143,4 +143,7 @@ extern int git_submodule_parse_ignore(
143
143
  extern int git_submodule_parse_update(
144
144
  git_submodule_update_t *out, const char *value);
145
145
 
146
+ extern int git_submodule__map(
147
+ git_repository *repo,
148
+ git_strmap *map);
146
149
  #endif
@@ -150,7 +150,7 @@ int git_sysdir_get_str(
150
150
  GITERR_CHECK_ERROR(git_sysdir_get(&path, which));
151
151
 
152
152
  if (!out || path->size >= outlen) {
153
- giterr_set(GITERR_NOMEMORY, "Buffer is too short for the path");
153
+ giterr_set(GITERR_NOMEMORY, "buffer is too short for the path");
154
154
  return GIT_EBUFS;
155
155
  }
156
156
 
@@ -241,7 +241,7 @@ static int git_sysdir_find_in_dirlist(
241
241
 
242
242
  done:
243
243
  git_buf_free(path);
244
- giterr_set(GITERR_OS, "The %s file '%s' doesn't exist", label, name);
244
+ giterr_set(GITERR_OS, "the %s file '%s' doesn't exist", label, name);
245
245
  return GIT_ENOTFOUND;
246
246
  }
247
247
 
@@ -61,7 +61,7 @@ const char *git_tag_message(const git_tag *t)
61
61
 
62
62
  static int tag_error(const char *str)
63
63
  {
64
- giterr_set(GITERR_TAG, "Failed to parse tag. %s", str);
64
+ giterr_set(GITERR_TAG, "failed to parse tag: %s", str);
65
65
  return -1;
66
66
  }
67
67
 
@@ -76,13 +76,13 @@ static int tag_parse(git_tag *tag, const char *buffer, const char *buffer_end)
76
76
  char *search;
77
77
 
78
78
  if (git_oid__parse(&tag->target, &buffer, buffer_end, "object ") < 0)
79
- return tag_error("Object field invalid");
79
+ return tag_error("object field invalid");
80
80
 
81
81
  if (buffer + 5 >= buffer_end)
82
- return tag_error("Object too short");
82
+ return tag_error("object too short");
83
83
 
84
84
  if (memcmp(buffer, "type ", 5) != 0)
85
- return tag_error("Type field not found");
85
+ return tag_error("type field not found");
86
86
  buffer += 5;
87
87
 
88
88
  tag->type = GIT_OBJ_BAD;
@@ -91,7 +91,7 @@ static int tag_parse(git_tag *tag, const char *buffer, const char *buffer_end)
91
91
  size_t type_length = strlen(tag_types[i]);
92
92
 
93
93
  if (buffer + type_length >= buffer_end)
94
- return tag_error("Object too short");
94
+ return tag_error("object too short");
95
95
 
96
96
  if (memcmp(buffer, tag_types[i], type_length) == 0) {
97
97
  tag->type = i;
@@ -101,19 +101,19 @@ static int tag_parse(git_tag *tag, const char *buffer, const char *buffer_end)
101
101
  }
102
102
 
103
103
  if (tag->type == GIT_OBJ_BAD)
104
- return tag_error("Invalid object type");
104
+ return tag_error("invalid object type");
105
105
 
106
106
  if (buffer + 4 >= buffer_end)
107
- return tag_error("Object too short");
107
+ return tag_error("object too short");
108
108
 
109
109
  if (memcmp(buffer, "tag ", 4) != 0)
110
- return tag_error("Tag field not found");
110
+ return tag_error("tag field not found");
111
111
 
112
112
  buffer += 4;
113
113
 
114
114
  search = memchr(buffer, '\n', buffer_end - buffer);
115
115
  if (search == NULL)
116
- return tag_error("Object too short");
116
+ return tag_error("object too short");
117
117
 
118
118
  text_len = search - buffer;
119
119
 
@@ -234,7 +234,7 @@ static int write_tag_annotation(
234
234
 
235
235
  on_error:
236
236
  git_buf_free(&tag);
237
- giterr_set(GITERR_OBJECT, "Failed to create tag annotation.");
237
+ giterr_set(GITERR_OBJECT, "failed to create tag annotation");
238
238
  return -1;
239
239
  }
240
240
 
@@ -257,7 +257,7 @@ static int git_tag_create__internal(
257
257
  assert(!create_tag_annotation || (tagger && message));
258
258
 
259
259
  if (git_object_owner(target) != repo) {
260
- giterr_set(GITERR_INVALID, "The given target does not belong to this repository");
260
+ giterr_set(GITERR_INVALID, "the given target does not belong to this repository");
261
261
  return -1;
262
262
  }
263
263
 
@@ -269,7 +269,7 @@ static int git_tag_create__internal(
269
269
  * reference unless overwriting has explicitly been requested **/
270
270
  if (error == 0 && !allow_ref_overwrite) {
271
271
  git_buf_free(&ref_name);
272
- giterr_set(GITERR_TAG, "Tag already exists");
272
+ giterr_set(GITERR_TAG, "tag already exists");
273
273
  return GIT_EEXISTS;
274
274
  }
275
275
 
@@ -349,7 +349,7 @@ int git_tag_create_frombuffer(git_oid *oid, git_repository *repo, const char *bu
349
349
  goto on_error;
350
350
 
351
351
  if (tag.type != target_obj->cached.type) {
352
- giterr_set(GITERR_TAG, "The type for the given target is invalid");
352
+ giterr_set(GITERR_TAG, "the type for the given target is invalid");
353
353
  goto on_error;
354
354
  }
355
355
 
@@ -366,7 +366,7 @@ int git_tag_create_frombuffer(git_oid *oid, git_repository *repo, const char *bu
366
366
  /** Ensure the tag name doesn't conflict with an already existing
367
367
  * reference unless overwriting has explicitly been requested **/
368
368
  if (error == 0 && !allow_ref_overwrite) {
369
- giterr_set(GITERR_TAG, "Tag already exists");
369
+ giterr_set(GITERR_TAG, "tag already exists");
370
370
  return GIT_EEXISTS;
371
371
  }
372
372
 
@@ -32,7 +32,7 @@ int git_trace_set(git_trace_level_t level, git_trace_callback callback)
32
32
  GIT_UNUSED(callback);
33
33
 
34
34
  giterr_set(GITERR_INVALID,
35
- "This version of libgit2 was not built with tracing.");
35
+ "this version of libgit2 was not built with tracing.");
36
36
  return -1;
37
37
  #endif
38
38
  }
@@ -121,7 +121,7 @@ int git_transport_new(git_transport **out, git_remote *owner, const char *url)
121
121
  int error;
122
122
 
123
123
  if ((error = transport_find_fn(&fn, url, &param)) == GIT_ENOTFOUND) {
124
- giterr_set(GITERR_NET, "Unsupported URL protocol");
124
+ giterr_set(GITERR_NET, "unsupported URL protocol");
125
125
  return -1;
126
126
  } else if (error < 0)
127
127
  return error;
@@ -107,13 +107,13 @@ static int negotiate_next_token(
107
107
  challenge_len = ctx->challenge ? strlen(ctx->challenge) : 0;
108
108
 
109
109
  if (challenge_len < 9) {
110
- giterr_set(GITERR_NET, "No negotiate challenge sent from server");
110
+ giterr_set(GITERR_NET, "no negotiate challenge sent from server");
111
111
  error = -1;
112
112
  goto done;
113
113
  } else if (challenge_len > 9) {
114
114
  if (git_buf_decode_base64(&input_buf,
115
115
  ctx->challenge + 10, challenge_len - 10) < 0) {
116
- giterr_set(GITERR_NET, "Invalid negotiate challenge from server");
116
+ giterr_set(GITERR_NET, "invalid negotiate challenge from server");
117
117
  error = -1;
118
118
  goto done;
119
119
  }
@@ -122,7 +122,7 @@ static int negotiate_next_token(
122
122
  input_token.length = input_buf.size;
123
123
  input_token_ptr = &input_token;
124
124
  } else if (ctx->gss_context != GSS_C_NO_CONTEXT) {
125
- giterr_set(GITERR_NET, "Could not restart authentication");
125
+ giterr_set(GITERR_NET, "could not restart authentication");
126
126
  error = -1;
127
127
  goto done;
128
128
  }
@@ -228,7 +228,7 @@ static int negotiate_init_context(
228
228
  gss_release_oid_set(&status_minor, &mechanism_list);
229
229
 
230
230
  if (!ctx->oid) {
231
- giterr_set(GITERR_NET, "Negotiate authentication is not supported");
231
+ giterr_set(GITERR_NET, "negotiate authentication is not supported");
232
232
  return -1;
233
233
  }
234
234
 
@@ -216,7 +216,7 @@ int git_cred_ssh_key_memory_new(
216
216
  GIT_UNUSED(passphrase);
217
217
 
218
218
  giterr_set(GITERR_INVALID,
219
- "This version of libgit2 was not built with ssh memory credentials.");
219
+ "this version of libgit2 was not built with ssh memory credentials.");
220
220
  return -1;
221
221
  #endif
222
222
  }
@@ -45,7 +45,7 @@ static int gen_proto(git_buf *request, const char *cmd, const char *url)
45
45
 
46
46
  delim = strchr(url, '/');
47
47
  if (delim == NULL) {
48
- giterr_set(GITERR_NET, "Malformed URL");
48
+ giterr_set(GITERR_NET, "malformed URL");
49
49
  return -1;
50
50
  }
51
51
 
@@ -240,7 +240,7 @@ static int _git_uploadpack(
240
240
  return 0;
241
241
  }
242
242
 
243
- giterr_set(GITERR_NET, "Must call UPLOADPACK_LS before UPLOADPACK");
243
+ giterr_set(GITERR_NET, "must call UPLOADPACK_LS before UPLOADPACK");
244
244
  return -1;
245
245
  }
246
246
 
@@ -296,7 +296,7 @@ static int _git_receivepack(
296
296
  return 0;
297
297
  }
298
298
 
299
- giterr_set(GITERR_NET, "Must call RECEIVEPACK_LS before RECEIVEPACK");
299
+ giterr_set(GITERR_NET, "must call RECEIVEPACK_LS before RECEIVEPACK");
300
300
  return -1;
301
301
  }
302
302
 
@@ -403,7 +403,7 @@ static int on_headers_complete(http_parser *parser)
403
403
  t->location) {
404
404
 
405
405
  if (s->redirect_count >= 7) {
406
- giterr_set(GITERR_NET, "Too many redirects");
406
+ giterr_set(GITERR_NET, "too many redirects");
407
407
  return t->parse_error = PARSE_ERROR_GENERIC;
408
408
  }
409
409
 
@@ -428,14 +428,14 @@ static int on_headers_complete(http_parser *parser)
428
428
  /* Check for a 200 HTTP status code. */
429
429
  if (parser->status_code != 200) {
430
430
  giterr_set(GITERR_NET,
431
- "Unexpected HTTP status code: %d",
431
+ "unexpected HTTP status code: %d",
432
432
  parser->status_code);
433
433
  return t->parse_error = PARSE_ERROR_GENERIC;
434
434
  }
435
435
 
436
436
  /* The response must contain a Content-Type header. */
437
437
  if (!t->content_type) {
438
- giterr_set(GITERR_NET, "No Content-Type header in response");
438
+ giterr_set(GITERR_NET, "no Content-Type header in response");
439
439
  return t->parse_error = PARSE_ERROR_GENERIC;
440
440
  }
441
441
 
@@ -455,7 +455,7 @@ static int on_headers_complete(http_parser *parser)
455
455
  if (strcmp(t->content_type, git_buf_cstr(&buf))) {
456
456
  git_buf_free(&buf);
457
457
  giterr_set(GITERR_NET,
458
- "Invalid Content-Type: %s",
458
+ "invalid Content-Type: %s",
459
459
  t->content_type);
460
460
  return t->parse_error = PARSE_ERROR_GENERIC;
461
461
  }
@@ -488,7 +488,7 @@ static int on_body_fill_buffer(http_parser *parser, const char *str, size_t len)
488
488
  return 0;
489
489
 
490
490
  if (ctx->buf_size < len) {
491
- giterr_set(GITERR_NET, "Can't fit data in the buffer");
491
+ giterr_set(GITERR_NET, "can't fit data in the buffer");
492
492
  return t->parse_error = PARSE_ERROR_GENERIC;
493
493
  }
494
494
 
@@ -856,7 +856,7 @@ static int http_stream_write_single(
856
856
  assert(t->connected);
857
857
 
858
858
  if (s->sent_request) {
859
- giterr_set(GITERR_NET, "Subtransport configured for only one write");
859
+ giterr_set(GITERR_NET, "subtransport configured for only one write");
860
860
  return -1;
861
861
  }
862
862
 
@@ -252,7 +252,7 @@ static int local_ls(const git_remote_head ***out, size_t *size, git_transport *t
252
252
  transport_local *t = (transport_local *)transport;
253
253
 
254
254
  if (!t->have_refs) {
255
- giterr_set(GITERR_NET, "The transport has not yet loaded the refs");
255
+ giterr_set(GITERR_NET, "the transport has not yet loaded the refs");
256
256
  return -1;
257
257
  }
258
258
 
@@ -371,7 +371,7 @@ static int local_push(
371
371
  but we forbid all pushes just in case */
372
372
  if (!remote_repo->is_bare) {
373
373
  error = GIT_EBAREREPO;
374
- giterr_set(GITERR_INVALID, "Local push doesn't (yet) support pushing to non-bare repos.");
374
+ giterr_set(GITERR_INVALID, "local push doesn't (yet) support pushing to non-bare repos.");
375
375
  goto on_error;
376
376
  }
377
377
 
@@ -231,7 +231,7 @@ static int git_smart__connect(
231
231
  else if (GIT_DIRECTION_PUSH == t->direction)
232
232
  service = GIT_SERVICE_RECEIVEPACK_LS;
233
233
  else {
234
- giterr_set(GITERR_NET, "Invalid direction");
234
+ giterr_set(GITERR_NET, "invalid direction");
235
235
  return -1;
236
236
  }
237
237
 
@@ -252,7 +252,7 @@ static int git_smart__connect(
252
252
  pkt = (git_pkt *)git_vector_get(&t->refs, 0);
253
253
 
254
254
  if (!pkt || GIT_PKT_COMMENT != pkt->type) {
255
- giterr_set(GITERR_NET, "Invalid response");
255
+ giterr_set(GITERR_NET, "invalid response");
256
256
  return -1;
257
257
  } else {
258
258
  /* Remove the comment pkt from the list */
@@ -299,7 +299,7 @@ static int git_smart__ls(const git_remote_head ***out, size_t *size, git_transpo
299
299
  transport_smart *t = (transport_smart *)transport;
300
300
 
301
301
  if (!t->have_refs) {
302
- giterr_set(GITERR_NET, "The transport has not yet loaded the refs");
302
+ giterr_set(GITERR_NET, "the transport has not yet loaded the refs");
303
303
  return -1;
304
304
  }
305
305
 
@@ -319,7 +319,7 @@ int git_smart__negotiation_step(git_transport *transport, void *data, size_t len
319
319
  return -1;
320
320
 
321
321
  if (GIT_DIRECTION_FETCH != t->direction) {
322
- giterr_set(GITERR_NET, "This operation is only valid for fetch");
322
+ giterr_set(GITERR_NET, "this operation is only valid for fetch");
323
323
  return -1;
324
324
  }
325
325
 
@@ -348,7 +348,7 @@ int git_smart__get_push_stream(transport_smart *t, git_smart_subtransport_stream
348
348
  return -1;
349
349
 
350
350
  if (GIT_DIRECTION_PUSH != t->direction) {
351
- giterr_set(GITERR_NET, "This operation is only valid for push");
351
+ giterr_set(GITERR_NET, "this operation is only valid for push");
352
352
  return -1;
353
353
  }
354
354
 
@@ -226,7 +226,7 @@ static int ref_pkt(git_pkt **out, const char *line, size_t len)
226
226
 
227
227
  /* Check for a bit of consistency */
228
228
  if (line[GIT_OID_HEXSZ] != ' ') {
229
- giterr_set(GITERR_NET, "Error parsing pkt-line");
229
+ giterr_set(GITERR_NET, "error parsing pkt-line");
230
230
  error = -1;
231
231
  goto error_out;
232
232
  }
@@ -270,7 +270,7 @@ static int ok_pkt(git_pkt **out, const char *line, size_t len)
270
270
 
271
271
  line += 3; /* skip "ok " */
272
272
  if (!(ptr = strchr(line, '\n'))) {
273
- giterr_set(GITERR_NET, "Invalid packet line");
273
+ giterr_set(GITERR_NET, "invalid packet line");
274
274
  git__free(pkt);
275
275
  return -1;
276
276
  }
@@ -327,7 +327,7 @@ static int ng_pkt(git_pkt **out, const char *line, size_t len)
327
327
  return 0;
328
328
 
329
329
  out_err:
330
- giterr_set(GITERR_NET, "Invalid packet line");
330
+ giterr_set(GITERR_NET, "invalid packet line");
331
331
  git__free(pkt->ref);
332
332
  git__free(pkt);
333
333
  return -1;
@@ -543,7 +543,7 @@ static int buffer_want_with_caps(const git_remote_head *head, transport_smart_ca
543
543
 
544
544
  if (len > 0xffff) {
545
545
  giterr_set(GITERR_NET,
546
- "Tried to produce packet with invalid length %" PRIuZ, len);
546
+ "tried to produce packet with invalid length %" PRIuZ, len);
547
547
  return -1;
548
548
  }
549
549
 
@@ -60,7 +60,7 @@ int git_smart__store_refs(transport_smart *t, int flushes)
60
60
 
61
61
  gitno_consume(buf, line_end);
62
62
  if (pkt->type == GIT_PKT_ERR) {
63
- giterr_set(GITERR_NET, "Remote error: %s", ((git_pkt_err *)pkt)->error);
63
+ giterr_set(GITERR_NET, "remote error: %s", ((git_pkt_err *)pkt)->error);
64
64
  git__free(pkt);
65
65
  return -1;
66
66
  }
@@ -83,7 +83,7 @@ static int gen_proto(git_buf *request, const char *cmd, const char *url)
83
83
 
84
84
  done:
85
85
  if (!repo) {
86
- giterr_set(GITERR_NET, "Malformed git protocol URL");
86
+ giterr_set(GITERR_NET, "malformed git protocol URL");
87
87
  return -1;
88
88
  }
89
89
 
@@ -274,7 +274,7 @@ static int git_ssh_extract_url_parts(
274
274
  }
275
275
 
276
276
  if (colon == NULL || (colon < start)) {
277
- giterr_set(GITERR_NET, "Malformed URL");
277
+ giterr_set(GITERR_NET, "malformed URL");
278
278
  return -1;
279
279
  }
280
280
 
@@ -445,7 +445,7 @@ static int request_creds(git_cred **out, ssh_subtransport *t, const char *user,
445
445
  else if (error < 0)
446
446
  return error;
447
447
  else if (!cred) {
448
- giterr_set(GITERR_SSH, "Callback failed to initialize SSH credentials");
448
+ giterr_set(GITERR_SSH, "callback failed to initialize SSH credentials");
449
449
  return -1;
450
450
  }
451
451
  }
@@ -478,7 +478,7 @@ static int _git_ssh_session_create(
478
478
 
479
479
  s = libssh2_session_init();
480
480
  if (!s) {
481
- giterr_set(GITERR_NET, "Failed to initialize SSH session");
481
+ giterr_set(GITERR_NET, "failed to initialize SSH session");
482
482
  return -1;
483
483
  }
484
484
 
@@ -487,7 +487,7 @@ static int _git_ssh_session_create(
487
487
  } while (LIBSSH2_ERROR_EAGAIN == rc || LIBSSH2_ERROR_TIMEOUT == rc);
488
488
 
489
489
  if (rc != LIBSSH2_ERROR_NONE) {
490
- ssh_error(s, "Failed to start SSH session");
490
+ ssh_error(s, "failed to start SSH session");
491
491
  libssh2_session_free(s);
492
492
  return -1;
493
493
  }
@@ -685,7 +685,7 @@ static int ssh_uploadpack(
685
685
  return 0;
686
686
  }
687
687
 
688
- giterr_set(GITERR_NET, "Must call UPLOADPACK_LS before UPLOADPACK");
688
+ giterr_set(GITERR_NET, "must call UPLOADPACK_LS before UPLOADPACK");
689
689
  return -1;
690
690
  }
691
691
 
@@ -712,7 +712,7 @@ static int ssh_receivepack(
712
712
  return 0;
713
713
  }
714
714
 
715
- giterr_set(GITERR_NET, "Must call RECEIVEPACK_LS before RECEIVEPACK");
715
+ giterr_set(GITERR_NET, "must call RECEIVEPACK_LS before RECEIVEPACK");
716
716
  return -1;
717
717
  }
718
718
 
@@ -844,7 +844,7 @@ int git_smart_subtransport_ssh(
844
844
  assert(out);
845
845
  *out = NULL;
846
846
 
847
- giterr_set(GITERR_INVALID, "Cannot create SSH transport. Library was built without SSH support");
847
+ giterr_set(GITERR_INVALID, "cannot create SSH transport. Library was built without SSH support");
848
848
  return -1;
849
849
  #endif
850
850
  }
@@ -888,7 +888,7 @@ int git_transport_ssh_with_paths(git_transport **out, git_remote *owner, void *p
888
888
  assert(out);
889
889
  *out = NULL;
890
890
 
891
- giterr_set(GITERR_INVALID, "Cannot create SSH transport. Library was built without SSH support");
891
+ giterr_set(GITERR_INVALID, "cannot create SSH transport. Library was built without SSH support");
892
892
  return -1;
893
893
  #endif
894
894
  }