[PATCH v2] fetch-pack: check for shallow if depth given

2015-06-17 Thread Mike Edgar
o the user. This change pre-emptively checks so we can exit with a helpful error if necessary. Signed-off-by: Mike Edgar Acked-by: Jeff King --- fetch-pack.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fetch-pack.c b/fetch-pack.c index 48526aa..849a9d6 100644 --- a/fetch-p

[PATCH v2] fetch-pack: check for shallow if depth given

2015-06-17 Thread Mike Edgar
o the user. This change pre-emptively checks so we can exit with a helpful error if necessary. Signed-off-by: Mike Edgar --- fetch-pack.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fetch-pack.c b/fetch-pack.c index a912935..a136772 100644 --- a/fetch-pack.c +++ b/fetch-p

[PATCH] clone: check if server supports shallow clones

2015-06-10 Thread Mike Edgar
ith a helpful error if necessary. Signed-off-by: Mike Edgar --- builtin/clone.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/builtin/clone.c b/builtin/clone.c index b878252..b4e9846 100644 --- a/builtin/clone.c +++ b/builtin/clone.c @@ -944,6 +944,9 @@ int cmd_clone(int argc, const char *