Skip to content

Commit

Permalink
Merge pull request #92 from samoht/master
Browse files Browse the repository at this point in the history
Fix clone of empty paths
  • Loading branch information
samoht committed Jun 30, 2015
2 parents b2fd7a3 + 935b920 commit 2280995
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 11 deletions.
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
### 1.5.2

* Fix handling of empty paths (#89)

### 1.5.1 (2015-06-18)

* Fix filesystem expansion when a filen ame becomes a directory name or when
Expand Down
2 changes: 1 addition & 1 deletion _oasis
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
OASISFormat: 0.4
Name: git
Version: 1.5.1
Version: 1.5.2
Synopsis: A low-level interface to Git in pure OCaml
Authors: Thomas Gazagnaire
License: ISC
Expand Down
12 changes: 6 additions & 6 deletions lib/META
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# OASIS_START
# DO NOT EDIT (digest: 2ff4edc4484753ef5804339c0f2ecd61)
version = "1.5.1"
# DO NOT EDIT (digest: 83303a3ff821ab7316e6ee41ef738204)
version = "1.5.2"
description = "A low-level interface to Git in pure OCaml"
requires = "mstruct dolog ocamlgraph zip nocrypto uri lwt hex"
archive(byte) = "git.cma"
Expand All @@ -9,7 +9,7 @@ archive(native) = "git.cmxa"
archive(native, plugin) = "git.cmxs"
exists_if = "git.cma"
package "unix" (
version = "1.5.1"
version = "1.5.2"
description = "A low-level interface to Git in pure OCaml"
requires = "git git.http lwt cohttp.lwt lwt.unix conduit.lwt-unix"
archive(byte) = "git-unix.cma"
Expand All @@ -20,7 +20,7 @@ package "unix" (
)

package "top" (
version = "1.5.1"
version = "1.5.2"
description = "Toplevel printers for Git values"
requires = "git"
archive(byte) = "git_top.cma"
Expand All @@ -31,7 +31,7 @@ package "top" (
)

package "mirage" (
version = "1.5.1"
version = "1.5.2"
description = "A low-level interface to Git in pure OCaml"
requires =
"git git.http mirage-types.lwt io-page conduit.mirage dns.mirage mirage-http mirage-flow"
Expand All @@ -43,7 +43,7 @@ package "mirage" (
)

package "http" (
version = "1.5.1"
version = "1.5.2"
description = "A low-level interface to Git in pure OCaml"
requires = "git lwt cohttp.lwt uri.services"
archive(byte) = "git-http.cma"
Expand Down
3 changes: 2 additions & 1 deletion lib/sync.ml
Original file line number Diff line number Diff line change
Expand Up @@ -282,9 +282,10 @@ module Make (IO: IO) (Store: Store.S) = struct
let uri = Gri.to_uri t.gri in
let message =
let buf = Buffer.create 1024 in
let path = match Uri.path uri with "" -> "/" | p -> p in
Buffer.add_string buf (string_of_request t.request);
Buffer.add_char buf Misc.sp;
Buffer.add_string buf (Uri.path uri);
Buffer.add_string buf path;
Buffer.add_char buf Misc.nul;
begin match Uri.host uri with
| None -> ()
Expand Down
6 changes: 3 additions & 3 deletions setup.ml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
(* setup.ml generated for the first time by OASIS v0.4.1 *)

(* OASIS_START *)
(* DO NOT EDIT (digest: fe5782435b7fc5fd5bab6b105eb82553) *)
(* DO NOT EDIT (digest: e9aa814eafa82e915838ad5b136dbff3) *)
(*
Regenerated by OASIS v0.4.5
Visit http://oasis.forge.ocamlcore.org for more information and
Expand Down Expand Up @@ -6861,7 +6861,7 @@ let setup_t =
alpha_features = [];
beta_features = [];
name = "git";
version = "1.5.1";
version = "1.5.2";
license =
OASISLicense.DEP5License
(OASISLicense.DEP5Unit
Expand Down Expand Up @@ -7300,7 +7300,7 @@ let setup_t =
};
oasis_fn = Some "_oasis";
oasis_version = "0.4.5";
oasis_digest = Some "\028¼ÈÑðU:È¥â§Eø åý";
oasis_digest = Some "ä\bÁ£\026\152\014eW¨DlS\014Ì\011";
oasis_exec = None;
oasis_setup_args = [];
setup_update = false
Expand Down

0 comments on commit 2280995

Please sign in to comment.